update brew.completion.bash

adding support for the new brew completion naming convention
pull/742/head
Nasr S. Hassanein 2016-06-13 04:19:42 +03:00 committed by GitHub
parent 758bcdae19
commit 050a415fba
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,10 @@ if which brew >/dev/null 2>&1; then
. `brew --prefix`/etc/bash_completion . `brew --prefix`/etc/bash_completion
fi fi
if [ -f `brew --prefix`/etc/bash_completion.d/brew ]; then
. `brew --prefix`/etc/bash_completion.d/brew
fi
if [ -f `brew --prefix`/Library/Contributions/brew_bash_completion.sh ]; then if [ -f `brew --prefix`/Library/Contributions/brew_bash_completion.sh ]; then
. `brew --prefix`/Library/Contributions/brew_bash_completion.sh . `brew --prefix`/Library/Contributions/brew_bash_completion.sh
fi fi