Merge pull request #4287 from apjanke/zsh-brew-cask-upgrade-completion
zsh completions: add brew cask upgrade
This commit is contained in:
commit
1cd86fc551
@ -49,6 +49,7 @@ __brew_cask_commands() {
|
|||||||
'search:searches all known Casks'
|
'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'
|
||||||
'zap:zaps all files associated with the given Cask'
|
'zap:zaps all files associated with the given Cask'
|
||||||
)
|
)
|
||||||
_describe -t commands "brew cask command" commands
|
_describe -t commands "brew cask command" commands
|
||||||
@ -159,6 +160,13 @@ _brew_cask_uninstall() {
|
|||||||
'*::token:__brew_installed_casks'
|
'*::token:__brew_installed_casks'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_brew_cask_upgrade() {
|
||||||
|
_arguments : \
|
||||||
|
'--force:upgrade even if Cask is not present, and --force the install' \
|
||||||
|
'--greedy:also upgrade Casks with auto_updates or version \:latest' \
|
||||||
|
'*::token:__brew_installed_casks'
|
||||||
|
}
|
||||||
|
|
||||||
_brew_cask_zap() {
|
_brew_cask_zap() {
|
||||||
__brew_all_casks
|
__brew_all_casks
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user