diff --git a/completion/brew.completion.bash b/completion/brew.completion.bash index a0d98193..371fe77f 100644 --- a/completion/brew.completion.bash +++ b/completion/brew.completion.bash @@ -1,4 +1,4 @@ -if [ `which brew` ]; then +if which brew >/dev/null 2>&1; then if [ -f `brew --prefix`/Library/Contributions/brew_bash_completion.sh ]; then . `brew --prefix`/Library/Contributions/brew_bash_completion.sh fi