Update bash completion script

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Jack Nagel 2011-05-04 20:35:56 -05:00 committed by Adam Vandenberg
parent cfd3bc0b7e
commit d88b562926

View File

@ -9,9 +9,9 @@ _brew_to_completion()
# Subcommand list
[[ ${COMP_CWORD} -eq 1 ]] && {
local actions="--cache --config --prefix audit cat cleanup configure create
deps doctor edit home info install link list log outdated prune
remove search unlink update uses"
local actions="--cache --cellar --config --env --prefix --repository audit cat cleanup
configure create deps doctor edit fetch help home info install link list log options
outdated prune search test uninstall unlink update uses"
local ext=$(\ls $(brew --repository)/Library/Contributions/examples |
sed -e "s/\.rb//g" -e "s/brew-//g")
COMPREPLY=( $(compgen -W "${actions} ${ext}" -- ${cur}) )