Permalink
Browse files

More brew completion

  • Loading branch information...
1 parent c568cbd commit 4b3b4c08f9767a4751cb3640d337edabca607cbc @joshuaclayton joshuaclayton committed Dec 22, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 zsh_profile.d/completion.zsh
@@ -90,6 +90,7 @@ compdef _gem gem
_brew() {
if (( CURRENT == 2 )); then
+ compadd list
compadd install uninstall
compadd link unlink
compadd missing prune cleanup
@@ -107,6 +108,8 @@ _brew() {
compadd $(brew search ${words[-1]})
elif [[ $words[2] == "uninstall" ]]; then
compadd $(brew list)
+ elif [[ $words[2] == "cleanup" ]]; then
+ compadd $(brew list)
elif [[ $words[2] == "upgrade" ]]; then
compadd $(brew outdated | awk '{print $1}')
fi

0 comments on commit 4b3b4c0

Please sign in to comment.