From 9ad764d80c3b0cca1fb3251cb9c14e25543d5a42 Mon Sep 17 00:00:00 2001 From: nervo Date: Tue, 19 Nov 2024 20:47:20 +0100 Subject: [PATCH] feat(vault): re-introduce vault plugin (#12753) Co-authored-by: Carlo Sala --- plugins/vault/README.md | 9 +++++++++ plugins/vault/vault.plugin.zsh | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100644 plugins/vault/README.md create mode 100644 plugins/vault/vault.plugin.zsh diff --git a/plugins/vault/README.md b/plugins/vault/README.md new file mode 100644 index 000000000..cc270a385 --- /dev/null +++ b/plugins/vault/README.md @@ -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) +``` diff --git a/plugins/vault/vault.plugin.zsh b/plugins/vault/vault.plugin.zsh new file mode 100644 index 000000000..996cd12ad --- /dev/null +++ b/plugins/vault/vault.plugin.zsh @@ -0,0 +1,7 @@ +# Completion +if (( ! $+commands[vault] )); then + return +fi + +autoload -Uz bashcompinit && bashcompinit +complete -o nospace -C vault vault