only source brew if found on system

linux boxes don't use brew...
This commit is contained in:
Proctor
2014-01-16 11:27:58 -06:00
parent 6468eaae7a
commit e8f87d147a

View File

@@ -8,7 +8,7 @@ set -o vi
export CLICOLOR=1 export CLICOLOR=1
if [[ -f brew && -f $(brew --prefix)/etc/bash_completion ]]; then if which brew 2>/dev/null && [-f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion . $(brew --prefix)/etc/bash_completion
fi fi