Bash completion with non default store dir

Thomas Hummel googhummel at gmail.com
Wed Oct 25 21:18:52 CEST 2017


Hello,

I'm using pass v1.6.5 on Ubuntu 16.04.2 LTS using an alternate (non
default) store directory and an alternate gnupg directory. In order to do
that, I set up 2 environment vars :

GNUPGHOME=/path/to/custom/gnupg/home/.gnupg
PASSWORD_STORE_DIR=/path/to/custon/pass/store/.password-store

I then noticed that bash autocompletion did not work for completing entries.
Reading the completion code seems to point that I missed a trailing /.
As a matter of fact, functions use compgen -f $prefix$cur and indeed

PASSWORD_STORE_DIR=/path/to/custon/pass/store/.password-store/

did solve the problem.

I don't know if it's a packaging/distribution issue, an upstream issue or
an issue at all.
It only seemed counter-intuitive to me to have a mandatory trailing / in an
environment variable in such a case.

Thanks for your help and congratulations for the software.

--
Thomas H.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20171025/b02c6fa1/attachment.html>


More information about the Password-Store mailing list