feat(plugin/pass-cli): add proton pass-cli completions plugin

This commit is contained in:
Casaper 2026-05-14 18:11:38 +02:00
commit 2332542276
No known key found for this signature in database
GPG key ID: F24371C1FF84065C
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# Autocompletion for Proton Pass CLI (pass-cli)
if (( ! $+commands[pass-cli] )); then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `pass-cli`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_pass-cli" ]]; then
typeset -g -A _comps
autoload -Uz _pass-cli
_comps[pass-cli]=_pass-cli
fi
pass-cli completions zsh >| "$ZSH_CACHE_DIR/completions/_pass-cli" &|