From bb688a6cf57c74a434a77b82f1e0fd3c6f1182e7 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Fri, 26 Oct 2018 14:16:11 -0400 Subject: [PATCH] update rustup completion --- bin/minikube.setup.bash | 1 + bin/rustup.completion.bash | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 bin/minikube.setup.bash diff --git a/bin/minikube.setup.bash b/bin/minikube.setup.bash new file mode 100644 index 0000000..b752442 --- /dev/null +++ b/bin/minikube.setup.bash @@ -0,0 +1 @@ +export MINIKUBE_MEMORY=4096 diff --git a/bin/rustup.completion.bash b/bin/rustup.completion.bash index 8822853..bdb5601 100644 --- a/bin/rustup.completion.bash +++ b/bin/rustup.completion.bash @@ -251,13 +251,17 @@ _rustup() { return 0 ;; 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 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi case "${prev}" in + --toolchain) + COMPREPLY=($(compgen -f ${cur})) + return 0 + ;; *) COMPREPLY=() ;; @@ -266,13 +270,17 @@ _rustup() { return 0 ;; 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 COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) return 0 fi case "${prev}" in + --toolchain) + COMPREPLY=($(compgen -f ${cur})) + return 0 + ;; *) COMPREPLY=() ;;