summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
authorAlan Pearce2018-03-23 12:57:06 +0100
committerAlan Pearce2018-03-23 12:57:06 +0100
commit4f93a4969dc199679cd7cf73dc042744224e0a25 (patch)
tree026806bcaaf523f462fbb97508aad2943fde3b51 /zsh
parent9f519f764c69b7e41d54d4ba03c3fb851fec4fd9 (diff)
downloaddotfiles-4f93a4969dc199679cd7cf73dc042744224e0a25.tar.lz
dotfiles-4f93a4969dc199679cd7cf73dc042744224e0a25.tar.zst
dotfiles-4f93a4969dc199679cd7cf73dc042744224e0a25.zip
zsh: Enable kubectl completion
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index 1bc434c..5d7bc20 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -185,6 +185,11 @@ then
   fi
 fi
 
+if [[ $commands[kubectl] ]]
+then
+  source <(kubectl completion zsh)
+fi
+
 if [[ $TERM == "dumb" ]]
 then
   unsetopt zle