<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">You can also set up autocompletion for these aliases, e.g.:</p>

<hr style="background:#333; background-image:linear-gradient(to right, #ccc, #333, #ccc); border:0; height:1px" height="1">

<h1 style="font-size:1.4em">~/.bashrc</h1>

<p dir="auto">alias p1="PASSWORD_STORE_DIR=~/p1 pass"<br>
alias p2="PASSWORD_STORE_DIR=~/p2 pass"</p>

<p dir="auto">source /usr/local/etc/bash_completion.d/password-store</p>

<p dir="auto">_p1(){<br>
    PASSWORD_STORE_DIR=~/p1 _pass<br>
}</p>

<p dir="auto">complete -o filenames -o nospace -F _p1 p1</p>

<p dir="auto">_p2(){<br>
    PASSWORD_STORE_DIR=~/p2 _pass<br>
}</p>

<p dir="auto">complete -o filenames -o nospace -F _p2 p2</p>

<hr style="background:#333; background-image:linear-gradient(to right, #ccc, #333, #ccc); border:0; height:1px" height="1">

<p dir="auto">Hope this helps!</p>

<p dir="auto">-Adam</p>

<p dir="auto">On 14 Nov 2016, at 10:14, Lenz Weber wrote:</p>

<p dir="auto"></p></div>
<div style="white-space:pre-wrap"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">something along the lines of
</div><div dir="auto">
</div><div dir="auto">alias p1="PASSWORD_STORE_DIR=~/p1 pass"
</div><div dir="auto">alias p2="PASSWORD_STORE_DIR=~/p2 pass"
</div><div dir="auto">
</div><div dir="auto">would allow you to call p1 and p2 for the two folders respectively.
</div><div dir="auto">
</div><div dir="auto">On 11/14/2016 04:08 PM, Andrew Dunn wrote:
</div><blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999"><div dir="auto">But that's the fastest way, to modify an envar? I see qtpass seems to
</div><div dir="auto">have a tab for multiple stores, I was just hoping to stick with cli.
</div><div dir="auto">
</div><div dir="auto">On Mon, Nov 14, 2016 at 10:07 AM, Lenz Weber <mail@lenzw.de> wrote:
</div><blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><div dir="auto">just set the PASSWORD_STORE_DIR environment variable before calling pass.
</div><div dir="auto">
</div><div dir="auto">
</div><div dir="auto">On 11/14/2016 04:00 PM, Andrew Dunn wrote:
</div><blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><div dir="auto">I might have completely missed this in documentation, but is it
</div><div dir="auto">possible to have multiple password roots? I'm currently managing this
</div><div dir="auto">with some bash aliases that remove/re-symlink to different
</div><div dir="auto">repositories. My use case is that I have multiple contexts for sharing
</div><div dir="auto">passwords with others.
</div><div dir="auto">_______________________________________________
</div><div dir="auto">Password-Store mailing list
</div><div dir="auto">Password-Store@lists.zx2c4.com
</div><div dir="auto"><a href="http://lists.zx2c4.com/mailman/listinfo/password-store" style="color:#BBB">http://lists.zx2c4.com/mailman/listinfo/password-store</a>
</div></blockquote></blockquote></blockquote><div dir="auto">
</div><div dir="auto">_______________________________________________
</div><div dir="auto">Password-Store mailing list
</div><div dir="auto">Password-Store@lists.zx2c4.com
</div><div dir="auto"><a href="http://lists.zx2c4.com/mailman/listinfo/password-store" style="color:#777">http://lists.zx2c4.com/mailman/listinfo/password-store</a>
</div></blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>