95ccb4db1a33c3cdcf7afd134567b8930fe8b6f5

Author
Daniel Schauenberg <d@unwiredcouch.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

update brew plugin from homebrew contributions

Diff

 1diff --git a/plugins/brew.plugin.zsh b/plugins/brew.plugin.zsh
 2index 91397bf3a8406a3ebde25a3215540569f59680c6..162eb6442351855f82e0d0bf89e433ace7f4fe1e 100644
 3--- a/plugins/brew.plugin.zsh
 4+++ b/plugins/brew.plugin.zsh
 5@@ -1,6 +1,6 @@
 6 #compdef brew
 7 
 8-# copied from _fink
 9+# imported from the latest homebrew contributions
10 
11 _brew_all_formulae() {
12   formulae=(`brew search`)
13@@ -12,19 +12,25 @@ _brew_installed_formulae() {
14 
15 local -a _1st_arguments
16 _1st_arguments=(
17+  'cat:display formula file for a formula'
18+  'cleanup:uninstall unused and old versions of packages'
19+  'create:create a new formula'
20+  'deps:list dependencies and dependants of a formula'
21+  'doctor:audits your installation for common issues'
22+  'edit:edit a formula'
23+  'home:visit the homepage of a formula or the brew project'
24+  'info:information about a formula'
25   'install:install a formula'
26+  'link:link a formula'
27+  'list:list files in a formula or not-installed formulae'
28+  'log:git commit log for a formula'
29+  'outdated:list formulas for which a newer version is available'
30+  'prune:remove dead links'
31   'remove:remove a formula'
32   'search:search for a formula (/regex/ or string)'
33-  'list:list files in a formula or not-installed formulae'
34-  'link:link a formula'
35   'unlink:unlink a formula'
36-  'home:visit the homepage of a formula or the brew project'
37-  'info:information about a formula'
38-  'prune:remove dead links'
39   'update:freshen up links'
40-  'log:git commit log for a formula'
41-  'create:create a new formula'
42-  'edit:edit a formula'
43+  'uses:show formulas which depend on a formula'
44 )
45 
46 local expl
47@@ -47,12 +53,12 @@ case "$words[1]" in
48     _arguments \
49       '(--unbrewed)--unbrewed[files in brew --prefix not controlled by brew]' \
50       '1: :->forms' &&  return 0
51-      
52+
53       if [[ "$state" == forms ]]; then
54         _brew_installed_formulae
55         _requested installed_formulae expl 'installed formulae' compadd -a installed_formulae
56       fi ;;
57-  install|home|log|info)
58+  install|home|log|info|uses|cat|deps)
59     _brew_all_formulae
60     _wanted formulae expl 'all formulae' compadd -a formulae ;;
61   remove|edit|xo)