]> arthur.barton.de Git - brew-completion.git/commitdiff
Added support for brew command "--config"
authorAlexander Barton <alex@barton.de>
Tue, 22 Jun 2010 16:00:44 +0000 (18:00 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 22 Jun 2010 16:00:44 +0000 (18:00 +0200)
brew-completion.sh

index e72353479d2351c57f254bbd8331b94c6a00bcab..303e2193041e5816c5242a021030e6d07f6b3ee9 100644 (file)
@@ -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 \