mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-22 12:21:58 +00:00
feat(vault): re-introduce vault plugin (#12753)
Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
This commit is contained in:
parent
e636eeb696
commit
9ad764d80c
2 changed files with 16 additions and 0 deletions
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)
|
||||
```
|
7
plugins/vault/vault.plugin.zsh
Normal file
7
plugins/vault/vault.plugin.zsh
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Completion
|
||||
if (( ! $+commands[vault] )); then
|
||||
return
|
||||
fi
|
||||
|
||||
autoload -Uz bashcompinit && bashcompinit
|
||||
complete -o nospace -C vault vault
|
Loading…
Reference in a new issue