浏览代码

add kubectl plugin (#5298)

Patrick Stadler 8 年之前
父节点
当前提交
f19b6b24d3
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      plugins/kubectl/kubectl.plugin.zsh

+ 7 - 0
plugins/kubectl/kubectl.plugin.zsh

@@ -0,0 +1,7 @@
+# Autocompletion for kubectl, the command line interface for Kubernetes
+#
+# Author: https://github.com/pstadler
+
+if [ $commands[kubectl] ]; then
+  source <(kubectl completion zsh)
+fi