mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 05:59:46 +08:00
velero autocompletion plugin
This commit is contained in:
parent
079e7bb5e0
commit
19d7664392
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 New Issue
Block a user