<p dir="ltr">You could also do that with a simple bash script:</p>
<p dir="ltr"> ~/bin/passs<br>
---<br>
export PASSWORD_STORE_DIR=$1<br>
shift<br>
exec pass "$@"</p>
<br><div class="gmail_quote"><div dir="ltr">On Wed, 14 Oct 2015 19:24 Patrick Ben Koetter <<a href="mailto:p@sys4.de">p@sys4.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Anne Jan Brouwer <<a href="mailto:the_jinx@etv.cx" target="_blank">the_jinx@etv.cx</a>>:<br>
> In QtPass I “switch” the PASSWORD_STORE_DIR environment variable.<br>
><br>
> That seems to work well.<br>
><br>
> You could make a simpel script to switch the folders like pass-switch-work and pass-switch-private or something..<br>
><br>
> Or setup aliases (eg. pass-work and pass-private) with different PASSWORD_STORE_DIR environment settings.<br>
><br>
> Haven’t found a nicer way personally,<br>
<br>
Yep, same here.<br>
<br>
Would it make sense to add a new command line option to indicate the store?<br>
<br>
Something like "pass -s $password-store ..."?<br>
<br>
p@rick<br>
<br>
<br>
<br>
><br>
> Anne Jan<br>
><br>
> ---- Patrick Ben Koetter wrote ----<br>
><br>
> >Greetings,<br>
> ><br>
> >we use per customer/project code repos in git. And we'd like to store all<br>
> >secrets for a project along with the corresponding repo.<br>
> ><br>
> >All I've been able until today is come up with a set up aliases in my bashrc<br>
> >to point 'pass' to the different password-stores. It works, but it feels kind<br>
> >of clumsy.<br>
> ><br>
> >Anyone on the list who has had the same requirements and came up with a<br>
> >different solution?<br>
> ><br>
> >TIA<br>
> ><br>
> >p@rick<br>
> ><br>
> >--<br>
> >[*] sys4 AG<br>
> ><br>
> ><a href="https://sys4.de" rel="noreferrer" target="_blank">https://sys4.de</a>, +49 (89) 30 90 46 64<br>
> >Franziskanerstraße 15, 81669 München<br>
> ><br>
> >Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263<br>
> >Vorstand: Patrick Ben Koetter, Marc Schiffbauer<br>
> >Aufsichtsratsvorsitzender: Florian Kirstein<br>
> ><br>
> >_______________________________________________<br>
> >Password-Store mailing list<br>
> ><a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br>
> ><a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
<br>
> _______________________________________________<br>
> Password-Store mailing list<br>
> <a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br>
> <a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
<br>
<br>
--<br>
[*] sys4 AG<br>
<br>
<a href="https://sys4.de" rel="noreferrer" target="_blank">https://sys4.de</a>, +49 (89) 30 90 46 64<br>
Franziskanerstraße 15, 81669 München<br>
<br>
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263<br>
Vorstand: Patrick Ben Koetter, Marc Schiffbauer<br>
Aufsichtsratsvorsitzender: Florian Kirstein<br>
<br>
_______________________________________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br>
<a href="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
</blockquote></div>