From 615c15937ef96529332d2bd5dfc3d39fcff051d9 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 17 Jul 2012 22:09:47 -0500 Subject: [PATCH] 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. --- Library/Contributions/brew_bash_completion.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index 04592626aa..4351165402 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