From 986f56f318801809346e0ab01f65ace759dd0c4c Mon Sep 17 00:00:00 2001 From: Elmar Pruesse Date: Wed, 20 Apr 2016 17:11:45 -0600 Subject: .bash_profile: Redirect all `which brew` output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On RHEL6, `which brew` prints `/usr/bin/which: no brew in …` to stderr. Changing `> /dev/null` to `&>/dev/null` redirects both stdout and stderr to `/dev/null`, silencing the check completely. Closes #650. --- .bash_profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 4db6384..2971737 100644 --- a/.bash_profile +++ b/.bash_profile @@ -26,7 +26,7 @@ for option in autocd globstar; do done; # Add tab completion for many Bash commands -if which brew > /dev/null && [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then +if which brew &> /dev/null && [ -f "$(brew --prefix)/share/bash-completion/bash_completion" ]; then source "$(brew --prefix)/share/bash-completion/bash_completion"; elif [ -f /etc/bash_completion ]; then source /etc/bash_completion; -- cgit v1.2.3