diff --git a/.zshrc b/.zshrc index 40a7b6a..ff7bdb9 100644 --- a/.zshrc +++ b/.zshrc @@ -131,3 +131,8 @@ if [ -f '/home/barak/local/google-cloud-sdk/path.zsh.inc' ]; then source '/home/ # The next line enables shell command completion for gcloud. if [ -f '/home/barak/local/google-cloud-sdk/completion.zsh.inc' ]; then source '/home/barak/local/google-cloud-sdk/completion.zsh.inc'; fi + +# This enables autocomplete for kubectl +if [ $commands[kubectl] ]; then + source <(kubectl completion zsh) +fi