summaryrefslogtreecommitdiff
path: root/oh-my-zsh/plugins/kn/kn.plugin.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'oh-my-zsh/plugins/kn/kn.plugin.zsh')
-rw-r--r--oh-my-zsh/plugins/kn/kn.plugin.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/oh-my-zsh/plugins/kn/kn.plugin.zsh b/oh-my-zsh/plugins/kn/kn.plugin.zsh
new file mode 100644
index 0000000..f60177d
--- /dev/null
+++ b/oh-my-zsh/plugins/kn/kn.plugin.zsh
@@ -0,0 +1,8 @@
+# Autocompletion for kn, the command line interface for knative
+#
+# Author: https://github.com/btannous
+
+if [ $commands[kn] ]; then
+ source <(kn completion zsh)
+ compdef _kn kn
+fi