浏览代码

feat(vault): re-introduce vault plugin (#12753)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
nervo 6 天之前
父节点
当前提交
9ad764d80c
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 9 0
      plugins/vault/README.md
  2. 7 0
      plugins/vault/vault.plugin.zsh

+ 9 - 0
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)
+```

+ 7 - 0
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