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

index 303e2193041e5816c5242a021030e6d07f6b3ee9..873dd6c3fbda57bbf3e1cbc4b32b5ffc2a94d408 100644 (file)
@@ -48,7 +48,7 @@ _brew()
        done
 
        case "$cmd" in
-               "cleanup"|"edit"|"home"|"log"|"prune" \
+               "cat"|"cleanup"|"edit"|"home"|"log"|"prune" \
                |"--cache"|"--cellar"|"--prefix")
                        _brew_formula "$cur"
                        return 0
@@ -110,7 +110,7 @@ _brew()
                        --help --prefix --version -v -H' \
                        -- "$cur") )
        elif [ "$cmd" = "" ]; then
-               COMPREPLY=( $(compgen -W 'cleanup create edit home info \
+               COMPREPLY=( $(compgen -W 'cat cleanup create edit home info \
                        install link list log outdated prune remove search \
                        uninstall unlink update $EXTCMD' -- "$cur") )
        fi