Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Added completion items for 'brew'. #1114

wants to merge 2 commits into from

4 participants


Added completion for brew plugin.

  • tap - tap a new source of formulae on Github
  • untap - remove a tapped repository

Will this be merged?...




These changes are present in current master.
Please close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 12, 2012
  1. @ataj

    Added completion for 'brew tap'

    ataj authored
  2. @ataj

    Added completion for 'brew untap'

    ataj authored
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +10 −1 plugins/brew/_brew
11 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
'cat:display formula file for a formula'
@@ -31,14 +35,16 @@ _1st_arguments=(
'remove:remove a formula'
'search:search for a formula (/regex/ or string)'
'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]' \
@@ -77,4 +83,7 @@ case "$words[1]" in
_wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
+ untap)
+ _brew_tapped_repositories
+ _wanted tapped_repositories expl 'tapped repositories' compadd -a tapped_repositories;;
Something went wrong with that request. Please try again.