diff options
| author | Jack Nagel | 2011-10-08 20:29:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2011-10-08 20:30:10 -0500 |
| commit | cc7efdc94d3671764853536f3345a7cfd3b00577 (patch) | |
| tree | c8faf4f33ced637e7f7058fde29ff4f08e58df37 /Library | |
| parent | a8437a62ca71422bd2355707a4429acd23b89a8a (diff) | |
| download | brew-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.sh | 5 |
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 } |
