aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/brew_bash_completion.sh
diff options
context:
space:
mode:
authorAdam Vandenberg2010-10-01 07:07:46 -0700
committerAdam Vandenberg2010-10-01 07:07:46 -0700
commit8b8bf793150ab4f983ccce6ced6bf0bf5f18abe8 (patch)
treec544d7ea231898d3e2395bcf24ccef197e16ee23 /Library/Contributions/brew_bash_completion.sh
parent20e2844df798d7a490bbee8f8f41934f6d1eb367 (diff)
downloadbrew-8b8bf793150ab4f983ccce6ced6bf0bf5f18abe8.tar.bz2
Some people alias 'ls' so escape it in bash completion
Diffstat (limited to 'Library/Contributions/brew_bash_completion.sh')
-rw-r--r--Library/Contributions/brew_bash_completion.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index da9781fc4..07571f79a 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -12,7 +12,7 @@ _brew_to_completion()
local actions="--cache --config --prefix cat cleanup configure create
deps doctor edit home info install link list log outdated prune
remove search unlink update uses"
- local ext=$(ls $(brew --repository)/Library/Contributions/examples |
+ local ext=$(\ls $(brew --repository)/Library/Contributions/examples |
sed -e "s/\.rb//g" -e "s/brew-//g")
COMPREPLY=( $(compgen -W "${actions} ${ext}" -- ${cur}) )
return
@@ -29,14 +29,14 @@ _brew_to_completion()
case "$prev" in
# Commands that take a formula
cat|deps|edit|fetch|home|homepage|info|install|log|options|uses)
- local ff=$(ls $(brew --repository)/Library/Formula | sed "s/\.rb//g")
- local af=$(ls $(brew --repository)/Library/Aliases 2> /dev/null | sed "s/\.rb//g")
+ local ff=$(\ls $(brew --repository)/Library/Formula | sed "s/\.rb//g")
+ local af=$(\ls $(brew --repository)/Library/Aliases 2> /dev/null | sed "s/\.rb//g")
COMPREPLY=( $(compgen -W "${ff} ${af}" -- ${cur}) )
return
;;
# Commands that take an existing brew
abv|cleanup|link|list|ln|ls|remove|rm|uninstall|unlink)
- COMPREPLY=( $(compgen -W "$(ls $(brew --cellar))" -- ${cur}) )
+ COMPREPLY=( $(compgen -W "$(\ls $(brew --cellar))" -- ${cur}) )
return
;;
esac