Update brew completion to the latest version

This commit is contained in:
Katsunori Kanda 2012-09-23 02:28:31 +09:00
parent 1fe53ac70c
commit 3bea535045
1 changed files with 10 additions and 1 deletions

View File

@ -17,6 +17,7 @@
# * Daniel Schauenberg (https://github.com/mrtazz) # * Daniel Schauenberg (https://github.com/mrtazz)
# * Adam Vandenberg (https://github.com/adamv) # * Adam Vandenberg (https://github.com/adamv)
# * Erik Kastner (https://github.com/kastner) # * Erik Kastner (https://github.com/kastner)
# * Katsunori Kanda (https://github.com/potix2)
# #
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
@ -31,12 +32,15 @@ _brew_installed_formulae() {
local -a _1st_arguments local -a _1st_arguments
_1st_arguments=( _1st_arguments=(
'audit:check formulae for Homebrew coding style violations'
'cat:display formula file for a formula' 'cat:display formula file for a formula'
'cleanup:uninstall unused and old versions of packages' 'cleanup:uninstall unused and old versions of packages'
'create:create a new formula' 'create:create a new formula'
'deps:list dependencies and dependants of a formula' 'deps:list dependencies and dependants of a formula'
'doctor:audits your installation for common issues' 'doctor:audits your installation for common issues'
'diy:automatically determine the installation prefix for non-Homebrew software'
'edit:edit a formula' 'edit:edit a formula'
'fetch:download the source packages for the given formulae'
'home:visit the homepage of a formula or the brew project' 'home:visit the homepage of a formula or the brew project'
'info:information about a formula' 'info:information about a formula'
'install:install a formula' 'install:install a formula'
@ -44,15 +48,20 @@ _1st_arguments=(
'list:list files in a formula or not-installed formulae' 'list:list files in a formula or not-installed formulae'
'log:git commit log for a formula' 'log:git commit log for a formula'
'missing:check all installed formulae for missing dependencies.' 'missing:check all installed formulae for missing dependencies.'
'options:display install options specific to formula'
'outdated:list formulae for which a newer version is available' 'outdated:list formulae for which a newer version is available'
'prune:remove dead links' 'prune:remove dead links'
'remove:remove a formula' 'remove:remove a formula'
'search:search for a formula (/regex/ or string)' 'search:search for a formula (/regex/ or string)'
'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)'
'tap:tap a new formula repository from GitHub, or list existing taps'
'test:a few formulae provide a test method'
'unlink:unlink a formula' 'unlink:unlink a formula'
'untap:remove a tapped repository'
'update:freshen up links' 'update:freshen up links'
'upgrade:upgrade outdated formulae' 'upgrade:upgrade outdated formulae'
'uses:show formulae which depend on a formula' 'uses:show formulae which depend on a formula'
'versions:list previous versions of formulae'
) )
local expl local expl
@ -92,7 +101,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|test)
_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