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:
parent
2488998a0f
commit
615c15937e
@ -376,7 +376,8 @@ _brew ()
|
|||||||
|
|
||||||
if [[ $i -eq $COMP_CWORD ]]; then
|
if [[ $i -eq $COMP_CWORD ]]; then
|
||||||
local ext=$(\ls $(brew --repository)/Library/Contributions/cmds \
|
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 "
|
__brewcomp "
|
||||||
--cache --cellar --config
|
--cache --cellar --config
|
||||||
--env --prefix --repository
|
--env --prefix --repository
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user