From 050a415fbae574294d1f38706cddc609f30b801d Mon Sep 17 00:00:00 2001 From: "Nasr S. Hassanein" Date: Mon, 13 Jun 2016 04:19:42 +0300 Subject: [PATCH] update brew.completion.bash adding support for the new brew completion naming convention --- completion/available/brew.completion.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/completion/available/brew.completion.bash b/completion/available/brew.completion.bash index 50f6c08d..e11e80f8 100644 --- a/completion/available/brew.completion.bash +++ b/completion/available/brew.completion.bash @@ -2,6 +2,10 @@ if which brew >/dev/null 2>&1; then if [ -f `brew --prefix`/etc/bash_completion ]; then . `brew --prefix`/etc/bash_completion 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 . `brew --prefix`/Library/Contributions/brew_bash_completion.sh