[pass] [PATCH] allow custom prefix in zsh completion

Benjamin Richter br at waldteufel.eu
Fri Sep 25 16:57:42 CEST 2015


Hi everybody.

I was experimenting a bit with using multiple git repos with pass and
wrote a small patch to allow using a custom prefix for pass aliases.

With this, you can do

workpass() {
	PASSWORD_STORE_DIR=$HOME/work/pass pass $@
}

compdef _pass workpass
zstyle ':completion::complete:workpass::' prefix "$HOME/work/pass"

in your .zshrc and have the correct completion.

Regards
Benjamin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-allow-custom-prefix-in-zsh-completion.patch
Type: text/x-patch
Size: 978 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20150925/c051910b/attachment.bin>


More information about the Password-Store mailing list