[pass] Multiple password-stores

Jason A. Donenfeld Jason at zx2c4.com
Wed Sep 12 02:09:49 CEST 2012


Hi Simon,

That would indeed be nice to have. One second while I implement this...

Okay, done:
http://git.zx2c4.com/password-store/commit/?id=6ecdfe3844eec6e3d3f2d04c506c75114d97a5ec

This will be in the next version, but you can currently run the latest
git HEAD stably. Please test.

This makes the PASSWORD_STORE_DIR environment variable take precedence
over the default.

So, for your specific case, you could do this:

alias pwork="PASSWORD_STORE_DIR=$HOME/.pwd-store-work pass"
alias phome="PASSWORD_STORE_DIR=$HOME/.pwd-store-home pass"


Hope this helps,
Jason

On Wed, Sep 12, 2012 at 2:00 AM, Simon KP <si at eskp.net> wrote:
> Hi all,
>
> I was wondering whether it is in a planning to have multiple password-store
> directory trees or possible to achieve? eg. $HOME/.pwd-store-work and
> $HOME/.pwd-store-home. Maybe distinguish them with a command line switch and
> then create aliases in .bash_aliases?
>
> Why I'm asking is that I have multiple major password categories - personal,
> work etc. It'll be nice to keep them separate and under different repos.
>
> Cheers,
>
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/listinfo.cgi/password-store-zx2c4.com
>



More information about the Password-Store mailing list