Don't error on non-OS X machines.
This commit is contained in:
parent
25a74facd5
commit
5ae9bc7b18
2
.bashrc
2
.bashrc
|
@ -67,7 +67,7 @@ fi
|
|||
#--------------------------------------------------------------------------------
|
||||
# Add bash completion scripts
|
||||
#--------------------------------------------------------------------------------
|
||||
if [ -f $(brew --prefix)/etc/bash_completion ]; then
|
||||
if [ -f $(brew --prefix 2>/dev/null)/etc/bash_completion ]; then
|
||||
. $(brew --prefix)/etc/bash_completion
|
||||
fi
|
||||
#--------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue