1
0
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:
Halil Özgür 2014-08-21 17:10:47 +03:00
parent 23be6ab233
commit 7d5178168c

View File

@ -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