Completion for brew untap command.
This commit is contained in:
parent
c0a2c0c933
commit
9325fb1c03
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue