ZSH auto completion for Pass: prompt sub level words (currently only prompt top level)
0
votes
0
answers
18
views
I installed https://git.zx2c4.com/password-store/tree/src/completion/pass.zsh-completion under
/opt/homebrew/share/zsh-completions/pass.zsh-completion
and enabled compinit
in ~/.zshrc
:
# define zsh-completion
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
autoload -Uz compinit
compinit
fi
And the pass
completion works, but only with top level word.
For example I have misc/keycard
. When I type pass show m[TAB]
, I can see misc
prompted. But when I type pass show k[TAB]
, misc/keycard
is not showing.
Please instruct how to modify this completion file to enable partial regex match.
Basically it's impractical to use right now; as I put passwords into dir to ease my memory; I will not remember the whole structure of dir tree.
Asked by WesternGun
(111 rep)
Jul 18, 2025, 12:39 PM
Last activity: Jul 18, 2025, 04:19 PM
Last activity: Jul 18, 2025, 04:19 PM