Adam: Interesting suggestion! However, it appears that it might break the git completion when you do that... or maybe I set something up wrong?
On Mon, Nov 14, 2016 at 7:44 PM, Adam Liter <i...@adamliter.org> wrote: > 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 <m...@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@lists.zx2c4.com >>>>> http://lists.zx2c4.com/mailman/listinfo/password-store >> >> _______________________________________________ >> Password-Store mailing list >> Password-Store@lists.zx2c4.com >> http://lists.zx2c4.com/mailman/listinfo/password-store _______________________________________________ Password-Store mailing list Password-Store@lists.zx2c4.com http://lists.zx2c4.com/mailman/listinfo/password-store