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