mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-27 16:20:07 +00:00
velero autocompletion plugin
This commit is contained in:
parent
079e7bb5e0
commit
19d7664392
2 changed files with 30 additions and 0 deletions
22
plugins/velero/README.md
Normal file
22
plugins/velero/README.md
Normal file
|
@ -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.
|
8
plugins/velero/velero.plugin.zsh
Normal file
8
plugins/velero/velero.plugin.zsh
Normal file
|
@ -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
|
Loading…
Reference in a new issue