aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-10-08 20:29:36 -0500
committerJack Nagel2011-10-08 20:30:10 -0500
commitcc7efdc94d3671764853536f3345a7cfd3b00577 (patch)
treec8faf4f33ced637e7f7058fde29ff4f08e58df37 /Library
parenta8437a62ca71422bd2355707a4429acd23b89a8a (diff)
downloadbrew-cc7efdc94d3671764853536f3345a7cfd3b00577.tar.bz2
Make bash completion for `upgrade` smarter
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Contributions/brew_bash_completion.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 5b9bef45c..52b7f6fba 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -50,10 +50,13 @@ _brew_to_completion()
return
;;
# Commands that take an existing brew
- abv|cleanup|link|list|ln|ls|remove|rm|test|uninstall|unlink|upgrade)
+ abv|cleanup|link|list|ln|ls|remove|rm|test|uninstall|unlink)
COMPREPLY=( $(compgen -W "$(\ls $(brew --cellar))" -- ${cur}) )
return
;;
+ # Commands that take an outdated brew
+ upgrade)
+ COMPREPLY=( $(compgen -W "$(brew outdated --quiet)" -- ${cur}) )
esac
}