From 19d7664392d0cd028d16ad21b62ae8ded674e021 Mon Sep 17 00:00:00 2001 From: Simon Seidel Date: Thu, 13 Aug 2020 17:23:13 +0200 Subject: [PATCH 1/3] velero autocompletion plugin --- plugins/velero/README.md | 22 ++++++++++++++++++++++ plugins/velero/velero.plugin.zsh | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 plugins/velero/README.md create mode 100644 plugins/velero/velero.plugin.zsh diff --git a/plugins/velero/README.md b/plugins/velero/README.md new file mode 100644 index 000000000..729abc744 --- /dev/null +++ b/plugins/velero/README.md @@ -0,0 +1,22 @@ +# velero-zsh-autocomplete-plugin +Provides [Velero](https://velero.io/) CLI autocompletion for ZSH + +To use it, copy the `velero.plugin.zsh` file to your zsh plugin directory and add `velero` to the plugins array of your zshrc file: + +```bash + +plugins=( + + ... + + velero + + ... + + ) + +``` +## Contributors + ++ [s1msn](https://github.com/s1msn) - Plugin Author ++ Based on [kevinkirkup](https://github.com/kevinkirkup)'s oc autocomplete plugin. diff --git a/plugins/velero/velero.plugin.zsh b/plugins/velero/velero.plugin.zsh new file mode 100644 index 000000000..4dd1a894d --- /dev/null +++ b/plugins/velero/velero.plugin.zsh @@ -0,0 +1,8 @@ +# Autocompletion for Velero CLI +# Based on kevinkirkup's oc completion plugin +# +# Author: https://github.com/s1msn + +if [ $commands[oc] ]; then + source <(velero completion zsh) +fi From 1d93b196198312179bcf24a68165598fae4934c0 Mon Sep 17 00:00:00 2001 From: Simon Seidel Date: Thu, 13 Aug 2020 17:30:47 +0200 Subject: [PATCH 2/3] velero autocompletion plugin --- plugins/velero/velero.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/velero/velero.plugin.zsh b/plugins/velero/velero.plugin.zsh index 4dd1a894d..0f4042a6f 100644 --- a/plugins/velero/velero.plugin.zsh +++ b/plugins/velero/velero.plugin.zsh @@ -3,6 +3,6 @@ # # Author: https://github.com/s1msn -if [ $commands[oc] ]; then +if [ $commands[velero] ]; then source <(velero completion zsh) fi From 8912fda8336bdf4bbc37d77734152a5b70f0cefc Mon Sep 17 00:00:00 2001 From: s1msn <54962362+s1msn@users.noreply.github.com> Date: Thu, 13 Aug 2020 17:31:49 +0200 Subject: [PATCH 3/3] Update README.md --- plugins/velero/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/velero/README.md b/plugins/velero/README.md index 729abc744..9806e880d 100644 --- a/plugins/velero/README.md +++ b/plugins/velero/README.md @@ -1,7 +1,7 @@ # velero-zsh-autocomplete-plugin Provides [Velero](https://velero.io/) CLI autocompletion for ZSH -To use it, copy the `velero.plugin.zsh` file to your zsh plugin directory and add `velero` to the plugins array of your zshrc file: +To use it add `velero` to the plugins array of your zshrc file: ```bash