aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2012-07-17 22:09:47 -0500
committerMisty De Meo2012-07-17 23:29:28 -0500
commit30f93e2690cc6eb24c07355cb50fc63f32f27f06 (patch)
tree438ec44e54565b4d1f2a10969e207ae37b85d3fa /Library
parentd2db4924305f0e9114fea26d1d5089f4759a144c (diff)
downloadhomebrew-30f93e2690cc6eb24c07355cb50fc63f32f27f06.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')
-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