From 19d7664392d0cd028d16ad21b62ae8ded674e021 Mon Sep 17 00:00:00 2001 From: Simon Seidel Date: Thu, 13 Aug 2020 17:23:13 +0200 Subject: [PATCH] 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