[pass] [PATCH] Beef up bash completion

Brian Mattern rephorm at rephorm.com
Sat Sep 22 18:06:37 CEST 2012


On Fri, 21 Sep 2012, Jason A. Donenfeld wrote:

> > keys=$(gpg --list-keys |grep uid |sed 's/.*<\(.*\)>/\1/')
> > COMPREPLY+=($(compgen -W "${keys}" -- ${cur}))
> 
> Apparently this tweaks out keys with spaces or keys w/o emails.

Thanks for catching this. I mistakenly assumed that emails were required
for gpg-ids. I reworked this to complete both names and emails (if present)[1].

[1] http://git.zx2c4.com/password-store/commit/?id=74815d52ccf0c0623fbb41dfad4a9978bb9a2986



More information about the Password-Store mailing list