aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmar Pruesse <epruesse@users.noreply.github.com>2016-04-20 17:11:45 -0600
committerMathias Bynens <mathias@qiwi.be>2016-04-21 09:35:52 +0200
commit986f56f318801809346e0ab01f65ace759dd0c4c (patch)
tree20429182bcf7db75746e9199a886f5528072f4f8
parent5689fa8c011b1a5428a82a981737a5e3878a0cd1 (diff)
downloaddotfiles-master.tar.gz
dotfiles-master.tar.bz2
dotfiles-master.zip
.bash_profile: Redirect all `which brew` outputHEADmaster
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.
-rw-r--r--.bash_profile2
1 files changed, 1 insertions, 1 deletions
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;