mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-17 23:57:52 +08:00
feat(vault): re-introduce vault plugin
This commit is contained in:
parent
7bbebcd520
commit
e58e24c4a1
9
plugins/vault/README.md
Normal file
9
plugins/vault/README.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Vault plugin
|
||||||
|
|
||||||
|
This plugin adds completion for [Vault](https://www.vaultproject.io/), the secrets and sensitive data manager.
|
||||||
|
|
||||||
|
To use it, add `vault` to the plugins array in your zshrc file:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
plugins=(... vault)
|
||||||
|
```
|
||||||
6
plugins/vault/vault.plugin.zsh
Normal file
6
plugins/vault/vault.plugin.zsh
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Completion
|
||||||
|
if (( ! $+commands[vault] )); then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
complete -o nospace -C vault vault
|
||||||
Loading…
Reference in New Issue
Block a user