aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/brew_bash_completion.sh
diff options
context:
space:
mode:
authorMisty De Meo2012-07-17 22:09:47 -0500
committerMisty De Meo2012-07-17 23:29:28 -0500
commit615c15937ef96529332d2bd5dfc3d39fcff051d9 (patch)
tree4616238415ca468fb602d1a40d11d3d7bc55e4a1 /Library/Contributions/brew_bash_completion.sh
parent2488998a0fa0bdeb384961d826d2e0f4abe1b968 (diff)
downloadbrew-615c15937ef96529332d2bd5dfc3d39fcff051d9.tar.bz2
bash-completion: hide brew-bot support files
Hides files with the extensions ".css" and ".erb" to ensure that the brew-bot's support files don't show up in tab-completion.
Diffstat (limited to 'Library/Contributions/brew_bash_completion.sh')
-rw-r--r--Library/Contributions/brew_bash_completion.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh
index 04592626a..435116540 100644
--- a/Library/Contributions/brew_bash_completion.sh
+++ b/Library/Contributions/brew_bash_completion.sh
@@ -376,7 +376,8 @@ _brew ()
if [[ $i -eq $COMP_CWORD ]]; then
local ext=$(\ls $(brew --repository)/Library/Contributions/cmds \
- 2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g")
+ 2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
+ -e "s/.*\.css.*//g" -e "s/.*\.erb.*//g")
__brewcomp "
--cache --cellar --config
--env --prefix --repository