From 5538cf70f303f70ca2dc4a60c8130209d35f63df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C3=96zg=C3=BCr?= Date: Thu, 21 Aug 2014 17:10:47 +0300 Subject: [PATCH] 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/ --- bin/autojump.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/autojump.zsh b/bin/autojump.zsh index e4801e4..f1abd3f 100644 --- a/bin/autojump.zsh +++ b/bin/autojump.zsh @@ -8,7 +8,7 @@ fi # set homebrew installation paths -if command -v brew && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then +if command -v brew &>/dev/null && [[ -d "$(brew --prefix)/share/zsh/site-functions" ]]; then fpath=("$(brew --prefix)/share/zsh/site-functions" ${fpath}) fi