Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Add helm autocompletion to kubectl-helm-debian.sh #1528

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions script-library/kubectl-helm-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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..."
Expand Down