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.
This commit is contained in:
Misty De Meo 2012-07-17 22:09:47 -05:00
parent 2488998a0f
commit 615c15937e

View File

@ -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