Add remove back to completion

This commit is contained in:
Adam Vandenberg 2011-05-14 10:16:52 -07:00
parent 3718a60c90
commit dae5a4477b

View File

@ -11,7 +11,7 @@ _brew_to_completion()
[[ ${COMP_CWORD} -eq 1 ]] && { [[ ${COMP_CWORD} -eq 1 ]] && {
local actions="--cache --cellar --config --env --prefix --repository audit cat cleanup 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 configure create deps doctor edit fetch help home info install link list log options
outdated prune search test uninstall unlink update uses" outdated prune remove 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}) )