diff options
author | Elmar Pruesse <epruesse@users.noreply.github.com> | 2016-04-20 17:11:45 -0600 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2016-04-21 09:35:52 +0200 |
commit | 986f56f318801809346e0ab01f65ace759dd0c4c (patch) | |
tree | 20429182bcf7db75746e9199a886f5528072f4f8 /.bash_profile | |
parent | 5689fa8c011b1a5428a82a981737a5e3878a0cd1 (diff) | |
download | dotfiles-986f56f318801809346e0ab01f65ace759dd0c4c.tar.gz dotfiles-986f56f318801809346e0ab01f65ace759dd0c4c.tar.bz2 dotfiles-986f56f318801809346e0ab01f65ace759dd0c4c.zip |
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.
Diffstat (limited to '.bash_profile')
-rw-r--r-- | .bash_profile | 2 |
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; |