[pass] Patch: Add spaces as needed when autocompleting (bash)

Kjetil Torgrim Homme kjetil.homme at redpill-linpro.com
Mon Feb 1 11:31:01 CET 2016

On 01/31/2016 03:06 PM, Anas Syed wrote:
> When one uses autocompletion on bash, autocompleting the only match
> doesn't add an extra space. This is necessary when we are completing
> directory names, however, when we are completing commands and other
> command line flags, then we want an extra space, as is usual with the
> completion for other programs.
> I've fixed this by not passing "-o nospace" to complete, (so the default
> is that spaces are added). I then put "compopt -o nospace" whenever we
> don't want to add an extra space.
> I have attached the patch that fixes this.

this works great!  thank you for sharing.

Kjetil T. Homme
Redpill Linpro - Changing the game

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160201/c17a48ff/attachment.asc>

More information about the Password-Store mailing list