diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 5b9bef45c2..52b7f6fba9 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 }