aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJames Conroy-Finn2010-09-25 21:17:05 +0100
committerAdam Vandenberg2010-09-25 22:12:53 -0700
commit098159d81179c8cfbd550710fa5a5f64ecfaac72 (patch)
tree41b56628976a542fd54abed361fb98f6eeeb1d58 /Library
parent8a60d852b3ad4ba0dc6c59dc9a5d956eed300e1d (diff)
downloadbrew-098159d81179c8cfbd550710fa5a5f64ecfaac72.tar.bz2
Fix brew list completion and add support for --versions switch
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-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 b7356ee7f..ab69b213f 100644
--- a/Library/Contributions/brew_zsh_completion.zsh
+++ b/Library/Contributions/brew_zsh_completion.zsh
@@ -56,11 +56,12 @@ case "$words[1]" in
list)
_arguments \
'(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \
+ '(--versions)--versions[list all installed versions of a formula]' \
'1: :->forms' && return 0
if [[ "$state" == forms ]]; then
_brew_installed_formulae
- _requested installed_formulae expl 'installed formulae' compadd -a installed_formulae
+ _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae
fi ;;
install|home|log|info|uses|cat|deps)
_brew_all_formulae