aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/brew_zsh_completion.zsh
diff options
context:
space:
mode:
authorErlend Hamberg2014-03-29 13:11:22 +0100
committerMike McQuaid2014-03-29 16:19:57 -0500
commit4688c1614f152b9915059b5513a9a8f1c4ff450b (patch)
treeaa58444d11dceaac909efdeec74ea792f0616fe5 /Library/Contributions/brew_zsh_completion.zsh
parent7508ffff09ac2547b4bea3b006d53e8004bde023 (diff)
downloadhomebrew-4688c1614f152b9915059b5513a9a8f1c4ff450b.tar.bz2
zsh_completion: add brew switch support.
The Homebrew command `switch` will now be completed and installed fomulas can be completed. The installed versions (the last argument of `brew switch [formula] [version]`) is not completed at this point. Closes #27966. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Contributions/brew_zsh_completion.zsh')
-rw-r--r--Library/Contributions/brew_zsh_completion.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Contributions/brew_zsh_completion.zsh b/Library/Contributions/brew_zsh_completion.zsh
index 89bb02fb8..ab889d405 100644
--- a/Library/Contributions/brew_zsh_completion.zsh
+++ b/Library/Contributions/brew_zsh_completion.zsh
@@ -52,6 +52,7 @@ _1st_arguments=(
'search:search for a formula (/regex/ or string)'
'server:start a local web app that lets you browse formulae (requires Sinatra)'
'services:small wrapper around `launchctl` for supported formulae'
+ 'switch:switch between different versions of a formula'
'tap:tap a new formula repository from GitHub, or list existing taps'
'unlink:unlink a formula'
'unpin:unpin specified formulae'
@@ -90,7 +91,7 @@ if (( CURRENT == 1 )); then
fi
case "$words[1]" in
- install|reinstall|audit|home|homepage|log|info|abv|uses|cat|deps|edit|options)
+ install|reinstall|audit|home|homepage|log|info|abv|uses|cat|deps|edit|options|switch)
_brew_all_formulae
_wanted formulae expl 'all formulae' compadd -a formulae ;;
list|ls)