Sunday, May 27, 2018

Re: Autocompletion with pass in ksh

On Fri, 25 May 2018 08:36:44 +0200
Niels Kobschaetzki <niels@kobschaetzki.net> 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

No comments:

Post a Comment