]> arthur.barton.de Git - brew-completion.git/blobdiff - brew-completion.sh
brew install: add completion for --use-llvm
[brew-completion.git] / brew-completion.sh
index 7e9425b4f70947c05ba61f8b05f8da068cd03374..c14827b09bc6121bcc34d6c68eb85aa743f06a67 100644 (file)
@@ -53,20 +53,20 @@ _brew()
                        _brew_formula "$cur"
                        return 0
                        ;;
-               "link"|"remove"|"uninstall"|"unlink")
+               "link"|"remove"|"rm"|"uninstall"|"unlink")
                        _brew_formula_installed "$cur"
                        return 0
                        ;;
                "create")
                        if [[ "$cur" == -* ]]; then
-                               COMPREPLY=( $(compgen -W '--macports' \
-                                       -- "$cur") )
+                               COMPREPLY=( $(compgen -W '--macports --fink \
+                                       --cache' -- "$cur") )
                        fi
                        return 0
                        ;;
                "info")
                        if [[ "$cur" == -* ]]; then
-                               COMPREPLY=( $(compgen -W '--github' \
+                               COMPREPLY=( $(compgen -W '--all --github' \
                                        -- "$cur") )
                        else
                                _brew_formula "$cur"
@@ -75,9 +75,10 @@ _brew()
                        ;;
                "install")
                        if [[ "$cur" == -* ]]; then
-                               COMPREPLY=( $(compgen -W '--HEAD -H \
-                                       --debug -d --interactive -i
-                                       --verbose -v --ignore-dependencies' \
+                               COMPREPLY=( $(compgen -W '--git --HEAD -H \
+                                       --debug -d --force -f \
+                                       --interactive -i --verbose -v \
+                                       --ignore-dependencies --use-llvm' \
                                        -- "$cur") )
                        else
                                _brew_formula "$cur"
@@ -93,9 +94,6 @@ _brew()
                        fi
                        return 0
                        ;;
-               "search"|"update"|"--config")
-                       return 0
-                       ;;
                *)
                        for c in $EXTCMD; do
                                if [ "$cmd" = "$c" ]; then
@@ -110,9 +108,10 @@ _brew()
                        --help --prefix --version -v -H' \
                        -- "$cur") )
        elif [ "$cmd" = "" ]; then
-               COMPREPLY=( $(compgen -W 'cat cleanup create deps edit home \
-                       info install link list log outdated prune remove \
-                       search uninstall unlink update uses $EXTCMD' \
+               COMPREPLY=( $(compgen -W 'cat cleanup create deps doctor \
+                       edit home info install link list log outdated prune \
+                       remove rm search uninstall unlink up update uses \
+                       $EXTCMD' \
                        -- "$cur") )
        fi
 }