From 7d93ab23a78c357ce1c7529a35a31e62a15386b3 Mon Sep 17 00:00:00 2001 From: Austin Tajiri Date: Fri, 11 May 2012 22:02:51 -0700 Subject: [PATCH] Added completion for 'brew untap' --- plugins/brew/_brew | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/plugins/brew/_brew b/plugins/brew/_brew index 120a69be0..5c0f1341b 100644 --- a/plugins/brew/_brew +++ b/plugins/brew/_brew @@ -11,6 +11,10 @@ _brew_installed_formulae() { installed_formulae=(`brew list`) } +_brew_tapped_repositories() { + tapped_repositories=(`brew tap`) +} + local -a _1st_arguments _1st_arguments=( 'cat:display formula file for a formula' @@ -33,13 +37,14 @@ _1st_arguments=( 'server:start a local web app that lets you browse formulae (requires Sinatra)' 'tap:tap a new source of formulae on Github' 'unlink:unlink a formula' + 'untap:remove a tapped repository' 'update:freshen up links' 'upgrade:upgrade outdated formulae' 'uses:show formulas which depend on a formula' ) local expl -local -a formulae installed_formulae +local -a formulae installed_formulae tapped_repositories _arguments \ '(-v)-v[verbose]' \ @@ -78,4 +83,7 @@ case "$words[1]" in remove|rm|uninstall|unlink|cleanup|link|ln) _brew_installed_formulae _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;; + untap) + _brew_tapped_repositories + _wanted tapped_repositories expl 'tapped repositories' compadd -a tapped_repositories;; esac