Autocompletion with pass in ksh
Hi, I learned yesterday of ksh's cusom auto completion. Now I try to figure out how to use it together with pass, but maybe someone already did the work. pass (www.password-store.org) is a password manager and it takes as arguments actions, a couple of options and at the end the folder and filename of a password while the base is per default ~/.password-store I actually only want to complete the folders/names So when I want to copy the password in ~/.password-store/private/mybank.gpg I need to type "pass -c private/mybank" If I want to edit a password I need to type "pass edit private/mybank". How would I realize the completion of password-names? Can I also complete the actions? I know that I should be able to complete the actions, but actions and password-names? Niels
Re: Autocompletion with pass in ksh
> On 6. May 2018, at 06:33, Niels Kobschaetzki wrote: > > Hi, > > I learned yesterday of ksh's cusom auto completion. Now I try to figure > out how to use it together with pass, but maybe someone already did the > work. I got a reply on twitter from Roman Zolltarif who wrote a blog post about it :) https://www.romanzolotarev.com/pass.html#Completions%20in%20Korn%20shell Niels smime.p7s Description: S/MIME cryptographic signature
Re: Autocompletion with pass in ksh
On Fri, 25 May 2018 08:36:44 +0200 Niels Kobschaetzki wrote: > I got a reply on twitter from Roman Zolltarif who wrote a blog post > about it :) > https://www.romanzolotarev.com/pass.html#Completions%20in%20Korn%20shell This seems to be a custom pass implementation. Anyway, you can get autocompletion for pass (mostly) with IFS=' ' set -A complete_pass init ls find show grep insert edit generate rm mv cp git help version $(cd ~/.password-store; find * -name '*.gpg' | sed -ne 's/^\(.*\)\.gpg$/\1/p') IFS=' ' Kind regards Thomas
Re: Autocompletion with pass in ksh
On Sun, 6 May 2018 06:33:13 +0200 Niels Kobschaetzki wrote: > pass (www.password-store.org) is a password manager Did you mean https://www.passwordstore.org/ (no hyphen)? "the standard unix password manager" It depends on GnuPG, https://www.gnupg.org/ which is a GNU project. If this is part of an actual Unix standard, please do tell. "UNIX(R)" is a registered trademark of "The Open Group" http://www.opengroup.org/unix "The Open Group" is a very strange consortium of large tech corporations, none of which have anything to do with GnuPG or with this little utility "pass," however useful it might be.
Re: Autocompletion with pass in ksh
On 18/05/28 16:53, justina colmena wrote: On Sun, 6 May 2018 06:33:13 +0200 Niels Kobschaetzki wrote: pass (www.password-store.org) is a password manager Did you mean https://www.passwordstore.org/ (no hyphen)? "the standard unix password manager" It depends on GnuPG, https://www.gnupg.org/ which is a GNU project. If this is part of an actual Unix standard, please do tell. "UNIX(R)" is a registered trademark of "The Open Group" No, it is not a standard. That is probably just an exaggeration. But it is very useful. GPG is usually installed on unix-oid systems and it is itself only a shell-script. In addition it needs git for its history and sync. Cheers, Niels