From 077c340ed8dbd25e9f276b6f987df4e1cb3fdb77 Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Thu, 30 Aug 2012 10:57:22 +0200 Subject: [PATCH] fix which message when brew missing (linux) --- bash/completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash/completion b/bash/completion index 2309e5b..932bc1d 100644 --- a/bash/completion +++ b/bash/completion @@ -1,6 +1,6 @@ # default bash autocompletion bash_completion_file="/etc/bash_completion" -if which brew >/dev/null; then +if which brew 2>/dev/null >/dev/null; then bash_completion_file="`brew --prefix`$bash_completion_file" fi [[ -f $bash_completion_file ]] || unset bash_completion_file