Fix brew list completion and add support for --versions switch

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
James Conroy-Finn 2010-09-25 21:17:05 +01:00 committed by Adam Vandenberg
parent 8a60d852b3
commit 098159d811

View File

@ -56,11 +56,12 @@ case "$words[1]" in
list)
_arguments \
'(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \
'(--versions)--versions[list all installed versions of a formula]' \
'1: :->forms' && return 0
if [[ "$state" == forms ]]; then
_brew_installed_formulae
_requested installed_formulae expl 'installed formulae' compadd -a installed_formulae
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae
fi ;;
install|home|log|info|uses|cat|deps)
_brew_all_formulae