mirror of
https://github.com/wting/autojump
synced 2024-09-28 14:00:46 +00:00
Disable echo of command check
For some reason, "command -v brew" by itself has started to output "/usr/local/bin/brew" whenever I start a new shell (in iTerm2 2.0 on OS X 10.9.4 with zsh, oh-my-zsh etc). This fixes it, and it looks like it's the recommended way anyway: - http://unix.stackexchange.com/a/85250/4678 - http://www.cyberciti.biz/faq/unix-linux-shell-find-out-posixcommand-exists-or-not/
This commit is contained in:
parent
23be6ab233
commit
7d5178168c
@ -8,7 +8,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# set homebrew installation paths
|
# set homebrew installation paths
|
||||||
if command -v brew && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then
|
if command -v brew > /dev/null 2>&1 && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then
|
||||||
fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath})
|
fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath})
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user