diff options
| author | Mike McQuaid | 2017-08-14 09:42:24 +0100 |
|---|---|---|
| committer | GitHub | 2017-08-14 09:42:24 +0100 |
| commit | 9e8da170ffe97aa0932a3643c78b5471c7be7d82 (patch) | |
| tree | a22a681cace73ffd21d7ee2a855b9ade36879707 | |
| parent | e1bab7ede9461a6d5c93fb7240ba5a1f3bf7a7fb (diff) | |
| parent | d7baf8137325b27f3ae45bca430d1db25af8bb62 (diff) | |
| download | brew-9e8da170ffe97aa0932a3643c78b5471c7be7d82.tar.bz2 | |
Merge pull request #3052 from rhwood/patch-2
Remove "*instal" aliases from bash completion
| -rw-r--r-- | completions/bash/brew | 6 |
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 |
