Add upgrade to the zsh completion script

Closes Homebrew/homebrew#7923.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Bertrand Marron 2011-10-01 04:27:19 +02:00 committed by Jack Nagel
parent 74207f71e6
commit 744ab8fc8c

View File

@ -36,6 +36,7 @@ _1st_arguments=(
'server:start a local web app that lets you browse formulae (requires Sinatra)' 'server:start a local web app that lets you browse formulae (requires Sinatra)'
'unlink:unlink a formula' 'unlink:unlink a formula'
'update:freshen up links' 'update:freshen up links'
'upgrade:upgrade an installed formula'
'uses:show formulas which depend on a formula' 'uses:show formulas which depend on a formula'
) )
@ -76,7 +77,7 @@ case "$words[1]" in
install|home|homepage|log|info|abv|uses|cat|deps|edit|options) install|home|homepage|log|info|abv|uses|cat|deps|edit|options)
_brew_all_formulae _brew_all_formulae
_wanted formulae expl 'all formulae' compadd -a formulae ;; _wanted formulae expl 'all formulae' compadd -a formulae ;;
remove|rm|uninstall|unlink|cleanup|link|ln) remove|rm|uninstall|unlink|cleanup|link|ln|upgrade)
_brew_installed_formulae _brew_installed_formulae
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;; _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
esac esac