mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-04-24 04:29:25 +02:00
Update autocompletion of homebrew cask.
This commit is contained in:
parent
26064c635b
commit
f9e72e781a
1 changed files with 14 additions and 13 deletions
|
|
@ -31,21 +31,22 @@ _brew-cask()
|
||||||
if (( CURRENT == 3 )); then
|
if (( CURRENT == 3 )); then
|
||||||
local -a subcommands
|
local -a subcommands
|
||||||
subcommands=(
|
subcommands=(
|
||||||
"alfred:used to modify Alfred's scope to include the Caskroom"
|
|
||||||
'audit:verifies installability of casks'
|
'audit:verifies installability of casks'
|
||||||
'checklinks:checks for bad cask links'
|
'cat:dump raw source of the given Cask to the standard output'
|
||||||
'cleanup:cleans up cached downloads'
|
'cleanup:cleans up cached downloads and tracker symlinks'
|
||||||
'create:creates a cask of the given name and opens it in an editor'
|
'create:creates the given Cask and opens it in an editor'
|
||||||
'doctor:checks for configuration issues'
|
'doctor:checks for configuration issues'
|
||||||
'edit:edits the cask of the given name'
|
'edit:edits the given Cask'
|
||||||
'fetch:downloads Cask resources to local cache'
|
'fetch:downloads remote application files to local cache'
|
||||||
'home:opens the homepage of the cask of the given name'
|
'home:opens the homepage of the given Cask'
|
||||||
'info:displays information about the cask of the given name'
|
'info:displays information about the given Cask'
|
||||||
'install:installs the cask of the given name'
|
'install:installs the given Cask'
|
||||||
'list:with no args, lists installed casks; given installed casks, lists installed files'
|
'list:with no args, lists installed Casks; given installed Casks, lists staged files'
|
||||||
'search:searches all known casks'
|
'search:searches all known casks'
|
||||||
'uninstall:uninstalls the cask of the given name'
|
'style:checks Cask style using RuboCop'
|
||||||
|
'uninstall:uninstalls the given Cask'
|
||||||
"update:a synonym for 'brew update'"
|
"update:a synonym for 'brew update'"
|
||||||
|
'zap:zaps all files associated with the given Cask'
|
||||||
)
|
)
|
||||||
_describe -t commands "brew cask subcommand" subcommands
|
_describe -t commands "brew cask subcommand" subcommands
|
||||||
fi ;;
|
fi ;;
|
||||||
|
|
@ -58,10 +59,10 @@ _brew-cask()
|
||||||
local -a casks installed_casks
|
local -a casks installed_casks
|
||||||
local expl
|
local expl
|
||||||
case "$line[2]" in
|
case "$line[2]" in
|
||||||
list|uninstall)
|
list|uninstall|zap)
|
||||||
__brew_installed_casks
|
__brew_installed_casks
|
||||||
_wanted installed_casks expl 'installed casks' compadd -a installed_casks ;;
|
_wanted installed_casks expl 'installed casks' compadd -a installed_casks ;;
|
||||||
audit|edit|home|info|install)
|
audit|cat|edit|fetch|home|info|install|style)
|
||||||
__brew_all_casks
|
__brew_all_casks
|
||||||
_wanted casks expl 'all casks' compadd -a casks ;;
|
_wanted casks expl 'all casks' compadd -a casks ;;
|
||||||
esac ;;
|
esac ;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue