From 12a5ff1be31dc7df2f5b36ec77538cebd93345ab Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Tue, 22 Jun 2010 18:00:44 +0200 Subject: [PATCH] Added support for brew command "--config" --- brew-completion.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/brew-completion.sh b/brew-completion.sh index e723534..303e219 100644 --- a/brew-completion.sh +++ b/brew-completion.sh @@ -39,6 +39,7 @@ _brew() if [[ ${COMP_WORDS[i]} != -* \ || ${COMP_WORDS[i]} == "--cache" \ || ${COMP_WORDS[i]} == "--cellar" \ + || ${COMP_WORDS[i]} == "--config" \ || ${COMP_WORDS[i]} == "--prefix" ]]; then cmd=${COMP_WORDS[i]} break @@ -92,7 +93,7 @@ _brew() fi return 0 ;; - "search"|"update") + "search"|"update"|"--config") return 0 ;; *) @@ -105,8 +106,9 @@ _brew() esac if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '--cache --cellar --help --prefix \ - --version -v -H' -- "$cur") ) + COMPREPLY=( $(compgen -W '--cache --cellar --config \ + --help --prefix --version -v -H' \ + -- "$cur") ) elif [ "$cmd" = "" ]; then COMPREPLY=( $(compgen -W 'cleanup create edit home info \ install link list log outdated prune remove search \ -- 2.39.2