Merge pull request #3687 from apjanke/brew-cask-upgrade-completion-list-outdated-only
cask bash completion: have upgrade only complete outdated packages
This commit is contained in:
commit
1aa8aff84a
@ -613,6 +613,13 @@ __brew_cask_complete_caskroom ()
|
|||||||
COMPREPLY=($(compgen -W "$files" -- "$cur"))
|
COMPREPLY=($(compgen -W "$files" -- "$cur"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__brew_cask_complete_outdated ()
|
||||||
|
{
|
||||||
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
|
local outdated=$(brew cask outdated --quiet)
|
||||||
|
COMPREPLY=($(compgen -W "$outdated" -- "$cur"))
|
||||||
|
}
|
||||||
|
|
||||||
_brew_cask_cleanup ()
|
_brew_cask_cleanup ()
|
||||||
{
|
{
|
||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
@ -709,7 +716,7 @@ _brew_cask_upgrade ()
|
|||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
__brew_cask_complete_installed
|
__brew_cask_complete_outdated
|
||||||
}
|
}
|
||||||
|
|
||||||
_brew_cask ()
|
_brew_cask ()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user