b51c2a0d0b0af68d4b2b70b922f7d56a14a23dcc

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1987 from zvirusz/patch-1

Added 'reinstall' command to brew completion

Diff

 1diff --git a/plugins/brew/_brew b/plugins/brew/_brew
 2index e43ba2900d6f231878b8dbe90c29098501b621af..bf0a286c1f31c933fc31510c958c25dc42599a59 100644
 3--- a/plugins/brew/_brew
 4+++ b/plugins/brew/_brew
 5@@ -28,6 +28,7 @@ _1st_arguments=(
 6   'missing:check all installed formuale for missing dependencies.'
 7   'outdated:list formulas for which a newer version is available'
 8   'prune:remove dead links'
 9+  'reinstall:reinstall a formula'
10   'remove:remove a formula'
11   'search:search for a formula (/regex/ or string)'
12   'server:start a local web app that lets you browse formulae (requires Sinatra)'
13@@ -75,7 +76,7 @@ case "$words[1]" in
14   install|home|homepage|log|info|abv|uses|cat|deps|edit|options|versions)
15     _brew_all_formulae
16     _wanted formulae expl 'all formulae' compadd -a formulae ;;
17-  remove|rm|uninstall|unlink|cleanup|link|ln)
18+  reinstall|remove|rm|uninstall|unlink|cleanup|link|ln)
19     _brew_installed_formulae
20     _wanted installed_formulae expl 'installed formulae' compadd -a installed_formulae ;;
21 esac