From 7c73b22e75ac7cceffaec9bc88b6c20d5b5436b6 Mon Sep 17 00:00:00 2001 From: Hongyi Zhao Date: Thu, 19 Dec 2019 16:45:39 +0800 Subject: [PATCH] fix completion/available/brew.completion.bash for the git-clone based installation --- completion/available/brew.completion.bash | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/completion/available/brew.completion.bash b/completion/available/brew.completion.bash index 5cbd1595..572c9389 100644 --- a/completion/available/brew.completion.bash +++ b/completion/available/brew.completion.bash @@ -8,4 +8,11 @@ if which brew >/dev/null 2>&1; then if [ -f "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh ]; then . "$BREW_PREFIX"/Library/Contributions/brew_bash_completion.sh 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