auto completion with tab: separate commands and tree structure

Pat Burroughs (Celti) celti at
Fri Mar 27 20:30:39 CET 2020

Excerpts from Reed Wade's message of March 27, 2020 8:38 am:
> I didn't worked on the pass bash autocomplete script but I think this is
> a bash completion limit and not a pass one.

This is mostly true up until bash 4.4, which offers the `nosort` 
completion option. Even after that, you're still limited to how bash 
wants to columnize the output; particularly, you can't put that "---" 
divider in there.

If you change /usr/share/bash-completion/completions/pass to add 
`-o nosort` to the last line, then you should get something similar to 
the following (minus the obvious censoring):

init                      mv                        ----/        
ls                        cp                        ----/        
find                      git                       -------/     
grep                      help                      ----/        
show                      version                   ----/        
insert                    audit                     -----------/ 
generate                  otp                       --/          
edit                      audit                     ---------/   
rm                        otp                       ---------/   

Yes, the duplicated pass extension commands are verbatim; I'm not quite 
sure about digging through the completion to fix them.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <>

More information about the Password-Store mailing list