Skip to content

Commit

Permalink
Merge pull request Homebrew#10226 from hyuraku/completions/zsh_add-ca…
Browse files Browse the repository at this point in the history
…sk-option

completions/zsh: add-cask-option
  • Loading branch information
MikeMcQuaid authored Jan 21, 2021
2 parents 7576097 + 7e2db0c commit 91759ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion completions/zsh/_brew
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,7 @@ _brew_readall() {
}

# brew reinstall formulae:
# brew reinstall --cask casks:
# mostly copy from brew install
_brew_reinstall() {
_arguments \
Expand All @@ -672,7 +673,10 @@ _brew_reinstall() {
'*::formula:__brew_installed_formulae' \
- interactive-install \
'--interactive[download and patch formula, then open a shell]' \
'::formula:__brew_installed_formulae'
'::formula:__brew_installed_formulae' \
- cask-install \
'--cask[reinstall casks]' \
': :__brew_all_casks' \
}

# brew search, -S:
Expand Down Expand Up @@ -850,6 +854,7 @@ _brew_update_test() {
}

# brew upgrade [install-options] [--cleanup] [--fetch-HEAD] [formulae]
# brew upgrade --cask [casks]
# install-options is copied from brew install
_brew_upgrade() {
_arguments \
Expand All @@ -872,6 +877,9 @@ _brew_upgrade() {
'--interactive[download and patch formula, then open a shell]' \
'--git' \
': : __brew_outdated_formulae'
- cask-install \
'--cask[reinstall casks]' \
': :__brew_all_casks' \

}

Expand Down

0 comments on commit 91759ac

Please sign in to comment.