X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=brew-completion.git;a=blobdiff_plain;f=brew-completion.sh;h=303e2193041e5816c5242a021030e6d07f6b3ee9;hp=e72353479d2351c57f254bbd8331b94c6a00bcab;hb=12a5ff1be31dc7df2f5b36ec77538cebd93345ab;hpb=8a544f401b71c006992c5cf25482e1c03a8d6572 diff --git a/brew-completion.sh b/brew-completion.sh index e723534..303e219 100644 --- a/brew-completion.sh +++ b/brew-completion.sh @@ -39,6 +39,7 @@ _brew() if [[ ${COMP_WORDS[i]} != -* \ || ${COMP_WORDS[i]} == "--cache" \ || ${COMP_WORDS[i]} == "--cellar" \ + || ${COMP_WORDS[i]} == "--config" \ || ${COMP_WORDS[i]} == "--prefix" ]]; then cmd=${COMP_WORDS[i]} break @@ -92,7 +93,7 @@ _brew() fi return 0 ;; - "search"|"update") + "search"|"update"|"--config") return 0 ;; *) @@ -105,8 +106,9 @@ _brew() esac if [[ "$cur" == -* ]]; then - COMPREPLY=( $(compgen -W '--cache --cellar --help --prefix \ - --version -v -H' -- "$cur") ) + COMPREPLY=( $(compgen -W '--cache --cellar --config \ + --help --prefix --version -v -H' \ + -- "$cur") ) elif [ "$cmd" = "" ]; then COMPREPLY=( $(compgen -W 'cleanup create edit home info \ install link list log outdated prune remove search \