diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index daf4eb5f7d7d64853dbd7cc74b32e70908d5620e..eaa564918f2a768289024e72a437943234166b95 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -11,7 +11,7 @@ _brew_to_completion() [[ ${COMP_CWORD} -eq 1 ]] && { 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 remove search test uninstall unlink update uses versions" + outdated prune remove search test uninstall unlink update upgrade uses versions" local ext=$(\ls $(brew --repository)/Library/Contributions/examples | sed -e "s/\.rb//g" -e "s/brew-//g") COMPREPLY=( $(compgen -W "${actions} ${ext}" -- ${cur}) ) @@ -50,7 +50,7 @@ _brew_to_completion() return ;; # Commands that take an existing brew - abv|cleanup|link|list|ln|ls|remove|rm|test|uninstall|unlink) + abv|cleanup|link|list|ln|ls|remove|rm|test|upgrade|uninstall|unlink) COMPREPLY=( $(compgen -W "$(\ls $(brew --cellar))" -- ${cur}) ) return ;;