From 7de43ff6b1360882a3f735a96d15039f3e7a9c7e Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Mon, 11 Jul 2022 13:48:13 +0000 Subject: [PATCH] Add helm autocompletion to kubectl-helm-debian.sh --- script-library/kubectl-helm-debian.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/script-library/kubectl-helm-debian.sh b/script-library/kubectl-helm-debian.sh index 0981024fd1..5bc21511f6 100755 --- a/script-library/kubectl-helm-debian.sh +++ b/script-library/kubectl-helm-debian.sh @@ -214,6 +214,16 @@ if ! type helm > /dev/null 2>&1; then exit 1 fi +# helm bash completion +helm completion bash > /etc/bash_completion.d/helm + +# helm zsh completion +if [ -e "${USERHOME}}/.oh-my-zsh" ]; then + mkdir -p "${USERHOME}/.oh-my-zsh/completions" + helm completion zsh > "${USERHOME}/.oh-my-zsh/completions/_helm" + chown -R "${USERNAME}" "${USERHOME}/.oh-my-zsh" +fi + # Install Minikube, verify checksum if [ "${MINIKUBE_VERSION}" != "none" ]; then echo "Downloading minikube..."