Filter "instal" from homebrew bash completions
Closes Homebrew/homebrew#45086. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
parent
a9b380539c
commit
6c5419fc5b
@ -600,7 +600,10 @@ _brew ()
|
||||
done
|
||||
|
||||
if [[ $i -eq $COMP_CWORD ]]; then
|
||||
__brewcomp "$(brew commands --quiet --include-aliases)"
|
||||
# Do not auto-complete "instal" abbreviation for "install" command.
|
||||
# Prefix newline to prevent not checking the first command.
|
||||
local cmds=$'\n'"$(brew commands --quiet --include-aliases)"
|
||||
__brewcomp "${cmds/$'\n'instal$'\n'/$'\n'}"
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user