From 098159d81179c8cfbd550710fa5a5f64ecfaac72 Mon Sep 17 00:00:00 2001 From: James Conroy-Finn Date: Sat, 25 Sep 2010 21:17:05 +0100 Subject: Fix brew list completion and add support for --versions switch Signed-off-by: Adam Vandenberg --- Library/Contributions/brew_zsh_completion.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library') 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 -- cgit v1.2.3