From ad85172df55e6bd743177e9bc53c4e18d5bd6b52 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Sun, 10 Feb 2019 20:08:43 -0800 Subject: [PATCH] add kubectl completion --- .zshrc | 5 +++++ 1 file changed, 5 insertions(+) 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