Merge pull request #1048 from miketheman/update-brew-completion

Update brew completion
pull/1052/head
Travis Swicegood 2017-09-28 14:25:46 -04:00 committed by GitHub
commit ba10f9f6d6
1 changed files with 6 additions and 4 deletions

View File

@ -1,9 +1,11 @@
if which brew >/dev/null 2>&1; then if which brew >/dev/null 2>&1; then
if [ -f `brew --prefix`/etc/bash_completion ]; then BREW_PREFIX=$(brew --prefix)
. `brew --prefix`/etc/bash_completion
if [ -f "$BREW_PREFIX"/etc/bash_completion.d/brew ]; then
. "$BREW_PREFIX"/etc/bash_completion.d/brew
fi 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
fi fi