#1019938 pass: Bash completion don't work for extensions

#1019938#5
Date:
2022-09-16 16:33:31 UTC
From:
To:
Dear Maintainer,

Bash completion works on the base `pass`. If I start typing a password, hit
tab, it'll complete whichever password matches. However, the same functionality
doesn't work with `pass otp`. According to upstream
(https://github.com/tadfisher/pass-otp/issues/137) it should work, but there
appears to be an issue in how bash `source`s the completion script.

It appears from the thread that distros have different ways of hooking in bash
completion scripts, which is why I'm reporting this bug against Debian. From
the thread, the bash completion script is there and working, it just doesn't
hook in properly, which indicates a configuration issue in the install.

Can you provide guidance on how to get completion to work automatically in
Debian?

#1019938#10
Date:
2022-09-16 18:09:13 UTC
From:
To:
Hi,

unfortunately not. As you see, the upstream bug report is still open with no
solution.

As a workaround you could add

source /usr/share/bash-completion/completions/pass-otp

to your .bashrc.

Best,
Philip

#1019938#19
Date:
2025-01-03 14:46:27 UTC
From:
To:
Hi,

it's actually a general bug in pass that prevents bash completion to
work for pass extensions. There is a patch available to fix this in pass:

https://lists.zx2c4.com/pipermail/password-store/2024-June/004860.html

Best,
Philip

#1019938#34
Date:
2025-01-03 14:57:36 UTC
From:
To:
effectively defines a new bit of API, I think it needs to go upstream
first and so I'm not going to apply this in Debian in advance of that.

Thanks,