Make bash completion for upgrade smarter
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
a8437a62ca
commit
cc7efdc94d
@ -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
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user