mirror of
https://github.com/gosticks/brew.git
synced 2026-10-06 23:46:56 +00:00
Merge pull request #5965 from fauxpark/cask-complete-upgrade-greedy
Respect --greedy in cask upgrade completion
This commit is contained in:
@@ -629,7 +629,8 @@ __brew_cask_complete_caskroom ()
|
||||
__brew_cask_complete_outdated ()
|
||||
{
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
local outdated=$(brew cask outdated --quiet)
|
||||
local greedy=$(__brew_caskcomp_words_include "--greedy" && echo "--greedy")
|
||||
local outdated=$(brew cask outdated --quiet $greedy)
|
||||
COMPREPLY=($(compgen -W "$outdated" -- "$cur"))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user