[pass] Multiple password contexts
Adam Liter
adam.liter at gmail.com
Tue Nov 15 01:46:38 CET 2016
You can also set up autocompletion for these aliases, e.g.:
-----------------------------------------------------
# ~/.bashrc
alias p1="PASSWORD_STORE_DIR=~/p1 pass"
alias p2="PASSWORD_STORE_DIR=~/p2 pass"
source /usr/local/etc/bash_completion.d/password-store
_p1(){
PASSWORD_STORE_DIR=~/p1 _pass
}
complete -o filenames -o nospace -F _p1 p1
_p2(){
PASSWORD_STORE_DIR=~/p2 _pass
}
complete -o filenames -o nospace -F _p2 p2
-----------------------------------------------------
Hope this helps!
-Adam
On 14 Nov 2016, at 10:14, Lenz Weber wrote:
> something along the lines of
>
> alias p1="PASSWORD_STORE_DIR=~/p1 pass"
> alias p2="PASSWORD_STORE_DIR=~/p2 pass"
>
> would allow you to call p1 and p2 for the two folders respectively.
>
> On 11/14/2016 04:08 PM, Andrew Dunn wrote:
>> But that's the fastest way, to modify an envar? I see qtpass seems to
>> have a tab for multiple stores, I was just hoping to stick with cli.
>>
>> On Mon, Nov 14, 2016 at 10:07 AM, Lenz Weber <mail at lenzw.de> wrote:
>>> just set the PASSWORD_STORE_DIR environment variable before calling pass.
>>>
>>>
>>> On 11/14/2016 04:00 PM, Andrew Dunn wrote:
>>>> I might have completely missed this in documentation, but is it
>>>> possible to have multiple password roots? I'm currently managing this
>>>> with some bash aliases that remove/re-symlink to different
>>>> repositories. My use case is that I have multiple contexts for sharing
>>>> passwords with others.
>>>> _______________________________________________
>>>> Password-Store mailing list
>>>> Password-Store at lists.zx2c4.com
>>>> http://lists.zx2c4.com/mailman/listinfo/password-store
>
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161114/df63abbb/attachment.html>
More information about the Password-Store
mailing list