From d0c06d9ec840739623bbc2e1ae0b1f473187d7f2 Mon Sep 17 00:00:00 2001 From: Ben Davies Date: Mon, 31 Dec 2018 19:14:22 +0000 Subject: [PATCH] added svcat plugin (#7452) Including a Kubernetes Service Catalog plugin --- plugins/svcat/README.md | 9 +++++++++ plugins/svcat/svcat.plugin.zsh | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 plugins/svcat/README.md create mode 100644 plugins/svcat/svcat.plugin.zsh diff --git a/plugins/svcat/README.md b/plugins/svcat/README.md new file mode 100644 index 000000000..0bc60b117 --- /dev/null +++ b/plugins/svcat/README.md @@ -0,0 +1,9 @@ +# svcat + +This plugin provides completion for the [Kubernetes service catalog cli](https://github.com/kubernetes-incubator/service-catalog). + +To use it, add `svcat` to the plugins array in your zshrc file. + +``` +plugins=(... svcat) +``` diff --git a/plugins/svcat/svcat.plugin.zsh b/plugins/svcat/svcat.plugin.zsh new file mode 100644 index 000000000..f90e7d8d6 --- /dev/null +++ b/plugins/svcat/svcat.plugin.zsh @@ -0,0 +1,6 @@ +# Autocompletion for svcat. +# + +if [ $commands[svcat] ]; then + source <(svcat completion zsh) +fi