<!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:pre-wrap"><div dir="auto">Sorry I forgot the trailing slashes in the autocompletion stuff. That's what's in my config, but somehow that got lost in writing the email.
</div><div dir="auto">
</div><div dir="auto">Anyway, regarding:
</div><div dir="auto">
</div><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div dir="auto">Interesting suggestion! However, it appears that it might break the git completion when you do that... or maybe I set something up wrong?
</div></blockquote><div dir="auto">
</div><div dir="auto">Are you talking about auto completion of the git subcommands to pass, or are you talking about the ability to have pass automatically write commits?
</div><div dir="auto">
</div><div dir="auto">In either case, I've always used git submodules with pass, which isn't supported anyway, so I've never really relied on the git functionality of pass. Instead, I've written my own commits.
</div><div dir="auto">
</div><div dir="auto">So it's quite possible this breaks whatever git functionality you're referring to, and I wouldn't have noticed because that was the status quo for me. :-p
</div><div dir="auto">
</div><div dir="auto">There was discussion of this earlier on this mailing list, here: <a href="https://lists.zx2c4.com/pipermail/password-store/2016-February/002099.html" style="color:#3983C4">https://lists.zx2c4.com/pipermail/password-store/2016-February/002099.html</a>
</div><div dir="auto">
</div><div dir="auto">Lenz has a patch that would support git submodules. I haven't yet tried it out, though. I'm not really adding any new passwords to my current password store, so resolving this hasn't been a high priority for me, unfortunately.
</div><div dir="auto">
</div><div dir="auto">-Adam
</div><div dir="auto">
</div><div dir="auto">On 16 Nov 2016, at 13:59, Héctor Rivas Gándara wrote:
</div><div dir="auto">
</div></div>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><div id="474CBE5C-6A81-4085-A971-D95DD8731DA9"><p dir="ltr">That's exactly what the repo I posted does in the script .load.bash</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 16 Nov 2016 18:36, "Andrew Dunn" <<a href="mailto:andrew.g.dunn@gmail.com">andrew.g.dunn@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I was able to get Adam's suggestions to work, albeit it required a bit<br>
of mucking about.<br>
<br>
You'd need to set an alias for each pass<team> or whatever convention<br>
you'd prefer to use:<br>
<br>
```<br>
vim ~/.bashrc<br>
---<br>
alias passered="PASSWORD_STORE_DIR=~<wbr>/.pass/red<br>
PASSWORD_STORE_GIT=~/.pass/red pass"<br>
alias passblue="PASSWORD_STORE_DIR=~<wbr>/.pass/blue<br>
PASSWORD_STORE_GIT=~/.pass/<wbr>blue pass"<br>
```<br>
<br>
The key here is that you set both the variables, otherwise git won't<br>
have any context when you use it.<br>
<br>
You then need to set your bash completion up, I'm on arch so the<br>
completion path may be different for you:<br>
<br>
```<br>
vim ~/.bash_completion<br>
---<br>
source /usr/share/bash-completion/<wbr>completions/pass<br>
<br>
_passred(){<br>
    PASSWORD_STORE_DIR=~/.pass/<wbr>red/ _pass<br>
}<br>
<br>
complete -o filenames -o nospace -F _passred passred<br>
<br>
_passblue(){<br>
    PASSWORD_STORE_DIR=~/.pass/<wbr>blue/ _pass<br>
}<br>
<br>
complete -o filenames -o nospace -F _passblue passblue<br>
<br>
```<br>
<br>
You need to have the trailing `/` on the PASSWORD_STORE_DIR path,<br>
otherwise your completion will look like `//` instead of actual<br>
folders within the directory.<br>
<br>
On Wed, Nov 16, 2016 at 10:47 AM, Héctor Rivas Gándara <<a href="mailto:keymon@gmail.com">keymon@gmail.com</a>> wrote:<br>
>> Adam:<br>
>><br>
>> Interesting suggestion! However, it appears that it might break the<br>
>> git completion when you do that... or maybe I set something up wrong?<br>
><br>
><br>
> I use this template git repo with some bash aliases:<br>
><br>
> <a href="https://github.com/keymon/password-store-for-teams" rel="noreferrer" target="_blank">https://github.com/keymon/<wbr>password-store-for-teams</a><br>
><br>
> I have multiple password stores for multiple teams.<br>
><br>
> Contributions are welcome, specially a equivalent for ksh and other shells.<br>
</blockquote></div></div></div></blockquote>
<div style="white-space:pre-wrap"><div dir="auto">
</div></div>
</div>
</body>
</html>