Update manpage and completions.

Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
This commit is contained in:
BrewTestBot 2023-02-05 16:58:06 +00:00
parent c1b96e7199
commit 9e9b0abdd5
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F

View File

@ -100,24 +100,18 @@ __brew_complete_tapped() {
} }
__brew_complete_commands() { __brew_complete_commands() {
# Auto-complete Homebrew commands
# Do NOT auto-complete "*instal" aliases for "*install" commands
local cur="${COMP_WORDS[COMP_CWORD]}" local cur="${COMP_WORDS[COMP_CWORD]}"
local cmds local cmds
HOMEBREW_CACHE=$(brew --cache)
if [[ -n ${__HOMEBREW_COMMANDS} ]] HOMEBREW_REPOSITORY=$(brew --repo)
then # Do not auto-complete "*instal" or "*uninstal" aliases for "*install" commands.
cmds=${__HOMEBREW_COMMANDS} if [[ -f "${HOMEBREW_CACHE}/all_commands_list.txt" ]]
elif [[ -n ${HOMEBREW_CACHE:-} && -f ${HOMEBREW_CACHE}/all_commands_list.txt ]]
then then
cmds="$(< "${HOMEBREW_CACHE}/all_commands_list.txt" \grep -v instal$)" cmds="$(< "${HOMEBREW_CACHE}/all_commands_list.txt" \grep -v instal$)"
elif [[ -n ${HOMEBREW_REPOSITORY:-} && -f ${HOMEBREW_REPOSITORY}/completions/internal_commands_list.txt ]] else
then
cmds="$(< "${HOMEBREW_REPOSITORY}/completions/internal_commands_list.txt" \grep -v instal$)" cmds="$(< "${HOMEBREW_REPOSITORY}/completions/internal_commands_list.txt" \grep -v instal$)"
fi fi
while read -r line; do COMPREPLY+=("${line}"); done < <(compgen -W "${cmds}" -- "${cur}") while read -r line; do COMPREPLY+=("${line}"); done < <(compgen -W "${cmds}" -- "${cur}")
export __HOMEBREW_COMMANDS=${cmds}
} }
# compopt is only available in newer versions of bash # compopt is only available in newer versions of bash