]> arthur.barton.de Git - brew-completion.git/commitdiff
Added completion for "brew cleanup" command
authorAlexander Barton <alex@barton.de>
Mon, 18 Jan 2010 17:21:37 +0000 (18:21 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 18 Jan 2010 17:21:37 +0000 (18:21 +0100)
brew-completion.sh

index 1bb21d286ffcb5096079b4ece2ee4dbab200e75f..fd05cdbba11bb35a6e5ae815ecf015cf1293353c 100644 (file)
@@ -40,7 +40,7 @@ _brew()
        done
 
        case "$cmd" in
-               "edit"|"home"|"log"|"prune")
+               "cleanup"|"edit"|"home"|"log"|"prune")
                        _brew_formula "$cur"
                        return 0
                        ;;
@@ -93,9 +93,9 @@ _brew()
                COMPREPLY=( $(compgen -W '--cache --help --prefix --version \
                        -v -H' -- "$cur") )
        elif [ "$cmd" = "" ]; then
-               COMPREPLY=( $(compgen -W 'create edit home info install \
-                       link list log prune remove search uninstall unlink \
-                       update' -- "$cur") )
+               COMPREPLY=( $(compgen -W 'cleanup create edit home info \
+                       install link list log prune remove search uninstall \
+                       unlink update' -- "$cur") )
        fi
 }
 complete -F _brew brew