Completion for brew untap command.

This commit is contained in:
Jozef Izso 2013-07-08 13:06:43 +02:00
parent c0a2c0c933
commit 9325fb1c03
1 changed files with 8 additions and 1 deletions

View File

@ -30,6 +30,10 @@ _brew_installed_formulae() {
installed_formulae=(${(f)"$(_call_program formulae brew list 2>/dev/null)"}) installed_formulae=(${(f)"$(_call_program formulae brew list 2>/dev/null)"})
} }
_brew_installed_taps() {
installed_taps=(${(f)"$(_call_program formulae brew tap 2>/dev/null)"})
}
_brew_outdated_formulae() { _brew_outdated_formulae() {
outdated_formulae=(${(f)"$(_call_program formulae brew outdated 2>/dev/null)"}) outdated_formulae=(${(f)"$(_call_program formulae brew outdated 2>/dev/null)"})
} }
@ -70,7 +74,7 @@ _1st_arguments=(
) )
local expl local expl
local -a formulae installed_formulae outdated_formulae local -a formulae installed_formulae installed_taps outdated_formulae
_arguments \ _arguments \
'(-v)-v[verbose]' \ '(-v)-v[verbose]' \
@ -119,6 +123,9 @@ case "$words[1]" in
upgrade) upgrade)
_brew_outdated_formulae _brew_outdated_formulae
_wanted outdated_formulae expl 'outdated formulae' compadd -a outdated_formulae ;; _wanted outdated_formulae expl 'outdated formulae' compadd -a outdated_formulae ;;
untap)
_brew_installed_taps
_wanted installed_taps expl 'installed taps' compadd -a installed_taps ;;
esac esac
# Local Variables: # Local Variables: