Skip to content

Commit

Permalink
Update manpage and completions.
Browse files Browse the repository at this point in the history
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
  • Loading branch information
BrewTestBot committed Jan 9, 2024
1 parent 5b9f8b6 commit e2e184c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions completions/bash/brew
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ then
fi

__brewcomp_words_include() {
local element idx
local element idx
for (( idx = 1; idx < COMP_CWORD; idx++ ))
do
element=${COMP_WORDS[idx]}
Expand Down Expand Up @@ -75,7 +75,7 @@ __brew_complete_outdated_formulae() {
__brew_complete_outdated_casks() {
local cur="${COMP_WORDS[COMP_CWORD]}"
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}")
}

Expand Down
4 changes: 2 additions & 2 deletions completions/zsh/_brew
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ __brew_installed_casks() {

local -a list
local expl
list=( $(brew list --cask) )
list=( $(brew list --cask 2>/dev/null) )
_wanted list expl 'installed casks' compadd -a list
}

__brew_outdated_casks() {
[[ -prefix '-' ]] && return 0

local -a casks
casks=($(brew outdated --cask))
casks=($(brew outdated --cask 2>/dev/null))
_describe -t casks 'outdated casks' casks
}

Expand Down

0 comments on commit e2e184c

Please sign in to comment.