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