]> arthur.barton.de Git - brew-completion.git/blobdiff - brew-completion.sh
Added option "--git" to brew "install" command
[brew-completion.git] / brew-completion.sh
index 7e9425b4f70947c05ba61f8b05f8da068cd03374..e79a16e16fec6ca5f0aa563655ab155b9b82a5ac 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,7 +75,7 @@ _brew()
                        ;;
                "install")
                        if [[ "$cur" == -* ]]; then
-                               COMPREPLY=( $(compgen -W '--HEAD -H \
+                               COMPREPLY=( $(compgen -W '--git --HEAD -H \
                                        --debug -d --interactive -i
                                        --verbose -v --ignore-dependencies' \
                                        -- "$cur") )
@@ -111,7 +111,7 @@ _brew()
                        -- "$cur") )
        elif [ "$cmd" = "" ]; then
                COMPREPLY=( $(compgen -W 'cat cleanup create deps edit home \
-                       info install link list log outdated prune remove \
+                       info install link list log outdated prune remove rm \
                        search uninstall unlink update uses $EXTCMD' \
                        -- "$cur") )
        fi