fix completion/available/brew.completion.bash for the git-clone based installation

pull/1469/head
Hongyi Zhao 2019-12-19 16:45:39 +08:00
parent e08014e1da
commit 7c73b22e75
1 changed files with 7 additions and 0 deletions

View File

@ -8,4 +8,11 @@ if which brew >/dev/null 2>&1; then
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
# For the git-clone based installation, see here for more info:
# https://github.com/Bash-it/bash-it/issues/1458
# https://docs.brew.sh/Shell-Completion
if [ -f "$BREW_PREFIX"/completions/bash/brew ]; then
. "$BREW_PREFIX"/completions/bash/brew
fi
fi fi