Fix zsh completion.

This commit is contained in:
Markus Reiter 2018-07-19 13:39:52 +02:00
parent 8dc32e5a15
commit 0a7ab5c232
2 changed files with 2 additions and 3 deletions

View File

@ -105,7 +105,7 @@ __brew_common_commands() {
'postinstall:perform post_install for a given formula' 'postinstall:perform post_install for a given formula'
'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 or cask (/regex/ or string)'
'switch:switch between different versions of a formula' 'switch:switch between different versions of a formula'
'tap:tap a new formula repository from GitHub, or list existing taps' 'tap:tap a new formula repository from GitHub, or list existing taps'
'tap-info:information about a tap' 'tap-info:information about a tap'

View File

@ -19,7 +19,7 @@ __brew_cask() {
__brew_all_casks() { __brew_all_casks() {
local -a list local -a list
local expl local expl
list=( $(__brew_cask search) ) list=( $(brew search --casks) )
_wanted list expl 'all casks' compadd -a list _wanted list expl 'all casks' compadd -a list
} }
@ -46,7 +46,6 @@ __brew_cask_commands() {
'list:with no args, lists installed Casks; given installed Casks, lists staged files' 'list:with no args, lists installed Casks; given installed Casks, lists staged files'
'outdated:list the outdated installed Casks' 'outdated:list the outdated installed Casks'
'reinstall:reinstalls the given Cask' 'reinstall:reinstalls the given Cask'
'search:searches all known Casks'
'style:checks Cask style using RuboCop' 'style:checks Cask style using RuboCop'
'uninstall:uninstalls the given Cask' 'uninstall:uninstalls the given Cask'
'upgrade:upgrade installed Casks with newer versions' 'upgrade:upgrade installed Casks with newer versions'