diff options
| author | Jack Nagel | 2018-01-12 14:33:33 -0500 | 
|---|---|---|
| committer | GitHub | 2018-01-12 14:33:33 -0500 | 
| commit | 9be416e3c88a1ac9e6781fba3c792a33d2f5e4c9 (patch) | |
| tree | f4765716643ef0d72b8338609ab213e69133cc6d | |
| parent | df08bf2b094e94b4ec962d0812e4a06c2bd0cfa3 (diff) | |
| download | brew-9be416e3c88a1ac9e6781fba3c792a33d2f5e4c9.tar.bz2 | |
Suppress alias expansion in bash completion script
| -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 3bde8f926..521aea68d 100644 --- a/completions/bash/brew +++ b/completions/bash/brew @@ -51,7 +51,7 @@ __brewcomp() {  __brew_complete_formulae() {    local cur="${COMP_WORDS[COMP_CWORD]}"    local formulas="$(brew search)" -  local shortnames="$(echo "$formulas" | grep / | cut -d / -f 3)" +  local shortnames="$(echo "$formulas" | \grep / | \cut -d / -f 3)"    COMPREPLY=($(compgen -W "$formulas $shortnames" -- "$cur"))  } @@ -593,7 +593,7 @@ __brew_cask_complete_formulae ()      local lib=$(brew --repository)/Library      local taps=${lib}/Taps      local casks=${lib}/Taps/caskroom/homebrew-cask/Casks -    local ff=$(\ls ${casks} 2>/dev/null | sed 's/\.rb//g') +    local ff=$(\ls ${casks} 2>/dev/null | \sed 's/\.rb//g')      COMPREPLY=($(compgen -W "$ff" -- "$cur"))  } @@ -738,7 +738,7 @@ _brew() {    then      # 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 | grep -v instal$)" +    local cmds=$'\n'"$(brew commands --quiet --include-aliases | \grep -v instal$)"      __brewcomp "${cmds}"      return    fi | 
