Filter "instal" from homebrew bash completions

Closes Homebrew/homebrew#45086.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Robert Buonpastore 2015-10-18 16:03:52 -04:00 committed by Baptiste Fontaine
parent a9b380539c
commit 6c5419fc5b

View File

@ -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