Merge pull request #16454 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
This commit is contained in:
commit
bed8ccc5d3
@ -75,7 +75,7 @@ __brew_complete_outdated_formulae() {
|
|||||||
__brew_complete_outdated_casks() {
|
__brew_complete_outdated_casks() {
|
||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
local outdated_casks
|
local outdated_casks
|
||||||
outdated_casks="$(brew outdated --cask --quiet)"
|
outdated_casks="$(brew outdated --cask --quiet 2>/dev/null)"
|
||||||
while read -r line; do COMPREPLY+=("${line}"); done < <(compgen -W "${outdated_casks}" -- "${cur}")
|
while read -r line; do COMPREPLY+=("${line}"); done < <(compgen -W "${outdated_casks}" -- "${cur}")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -102,7 +102,7 @@ __brew_installed_casks() {
|
|||||||
|
|
||||||
local -a list
|
local -a list
|
||||||
local expl
|
local expl
|
||||||
list=( $(brew list --cask) )
|
list=( $(brew list --cask 2>/dev/null) )
|
||||||
_wanted list expl 'installed casks' compadd -a list
|
_wanted list expl 'installed casks' compadd -a list
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ __brew_outdated_casks() {
|
|||||||
[[ -prefix '-' ]] && return 0
|
[[ -prefix '-' ]] && return 0
|
||||||
|
|
||||||
local -a casks
|
local -a casks
|
||||||
casks=($(brew outdated --cask))
|
casks=($(brew outdated --cask 2>/dev/null))
|
||||||
_describe -t casks 'outdated casks' casks
|
_describe -t casks 'outdated casks' casks
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user