[pass] Bash/Zsh completion for multiple password stores?

Gabriel Filion gabster at lelutin.ca
Tue Mar 8 16:42:10 CET 2016


Hi there,

Dominic Sonntag:
> I'm quite new to pass and I migrated from KeePass.
> I have two password stores in use, one I share with my team and a
> personal one. They live in the two directories ~/.global-password-store
> and ~/.password-store and are git repos.
> 
> I created an alias:
> 
> alias gpass='PASSWORD_STORE_DIR=/home/dsonntag/.global-password-store pass'
> 
> so now I can use gpass instead of pass to access our team password
> store. But gpass has no completion.
> 
> I'm using the zsh with the pass plugin, so completion for the pass
> command works fine.
> 
> How can I setup the completion for my alias without having to
> copy-paste-edit the completion definition?

I got completion working for an alias with bash-completion stuff:

https://lelutin.ca/posts/Using_password-store_with_an_alternate_directory/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160308/3a81a4f0/attachment.asc>


More information about the Password-Store mailing list