diff options
author | Jacob Menke <jamenk@email.wm.edu> | 2020-05-20 05:30:11 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 11:30:11 +0200 |
commit | 582c8cb2915bf898a419cfcff398af1966211c25 (patch) | |
tree | 141bd41ca998b9557fb83a1e9aa0afb59e23519c /lib/diagnostics.zsh | |
parent | 8b51d17c469a7bafa1193d8af2a52e0d4c645eef (diff) | |
download | zsh-582c8cb2915bf898a419cfcff398af1966211c25.tar.gz zsh-582c8cb2915bf898a419cfcff398af1966211c25.tar.bz2 zsh-582c8cb2915bf898a419cfcff398af1966211c25.zip |
Prefix cd calls with `builtin` (#8937)
Diffstat (limited to 'lib/diagnostics.zsh')
-rw-r--r-- | lib/diagnostics.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/diagnostics.zsh b/lib/diagnostics.zsh index 9c9905e4d..001de42b7 100644 --- a/lib/diagnostics.zsh +++ b/lib/diagnostics.zsh @@ -192,19 +192,19 @@ function _omz_diag_dump_one_big_text() { command ls -ld ~/.oh* builtin echo builtin echo oh-my-zsh git state: - (cd $ZSH && builtin echo "HEAD: $(git rev-parse HEAD)" && git remote -v && git status | command grep "[^[:space:]]") + (builtin cd $ZSH && builtin echo "HEAD: $(git rev-parse HEAD)" && git remote -v && git status | command grep "[^[:space:]]") if [[ $verbose -ge 1 ]]; then - (cd $ZSH && git reflog --date=default | command grep pull) + (builtin cd $ZSH && git reflog --date=default | command grep pull) fi builtin echo if [[ -e $ZSH_CUSTOM ]]; then local custom_dir=$ZSH_CUSTOM if [[ -h $custom_dir ]]; then - custom_dir=$(cd $custom_dir && pwd -P) + custom_dir=$(builtin cd $custom_dir && pwd -P) fi builtin echo "oh-my-zsh custom dir:" builtin echo " $ZSH_CUSTOM ($custom_dir)" - (cd ${custom_dir:h} && command find ${custom_dir:t} -name .git -prune -o -print) + (builtin cd ${custom_dir:h} && command find ${custom_dir:t} -name .git -prune -o -print) builtin echo fi |