aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--completions/bash/brew6
1 files changed, 3 insertions, 3 deletions
diff --git a/completions/bash/brew b/completions/bash/brew
index 03a05cb37..60c272f73 100644
--- a/completions/bash/brew
+++ b/completions/bash/brew
@@ -563,10 +563,10 @@ _brew() {
if [[ "$i" -eq "$COMP_CWORD" ]]
then
- # Do not auto-complete "instal" abbreviation for "install" command.
+ # Do not auto-complete "*instal" or "*uninstal" aliases for "*install" commands.
# Prefix newline to prevent not checking the first command.
- local cmds=$'\n'"$(brew commands --quiet --include-aliases)"
- __brewcomp "${cmds/$'\n'instal$'\n'/$'\n'}"
+ local cmds=$'\n'"$(brew commands --quiet --include-aliases | grep -v instal$)"
+ __brewcomp "${cmds}"
return
fi