Answers for "kubectl completion zsh"

6

bash install kubectl

curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
kubectl version --client
Posted by: Guest on October-13-2020
1

kubectl completion zsh

echo 'source <(kubectl completion zsh)' >>~/.zshrc

# If you want to enable it with an alias
echo 'alias k=kubectl' >>~/.zshrc
echo 'complete -F __start_kubectl k' >>~/.zshrc
Posted by: Guest on March-17-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language