update rustup completion

pull/1/head
Andrew Coleman 2018-10-26 14:16:11 -04:00
parent 2505a9b8f8
commit bb688a6cf5
2 changed files with 11 additions and 2 deletions

1
bin/minikube.setup.bash Normal file
View File

@ -0,0 +1 @@
export MINIKUBE_MEMORY=4096

View File

@ -251,13 +251,17 @@ _rustup() {
return 0 return 0
;; ;;
rustup__doc) rustup__doc)
opts=" -h -V --path --book --std --reference --help --version " opts=" -h -V --path --book --std --reference --help --version --toolchain "
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0
fi fi
case "${prev}" in case "${prev}" in
--toolchain)
COMPREPLY=($(compgen -f ${cur}))
return 0
;;
*) *)
COMPREPLY=() COMPREPLY=()
;; ;;
@ -266,13 +270,17 @@ _rustup() {
return 0 return 0
;; ;;
rustup__docs) rustup__docs)
opts=" -h -V --path --book --std --reference --help --version " opts=" -h -V --path --book --std --reference --help --version --toolchain "
if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
return 0 return 0
fi fi
case "${prev}" in case "${prev}" in
--toolchain)
COMPREPLY=($(compgen -f ${cur}))
return 0
;;
*) *)
COMPREPLY=() COMPREPLY=()
;; ;;