On Sat, 28 Jan 2017 07:40:14 +0100
Lucas Hoffmann <[email protected]> wrote:

> Quoting Diego Depaoli (2017-01-27 21:42:11)
> > So to hold it all together, I use a trivial two step  solution:
> > first with edit subcommand I manually add an empty line at the top
> > of the file, then with generate subcommand and --in-place flag i
> > fill it. Is there any easier way?  
> 
> You could try to temporarily use sed as your editor.  Something like
> 
> EDITOR="sed -i '1i\\
> '" pass edit foo; pass generate -i foo 20
> 
> (take care about quoting in your shell you want the sed command to be
> 4 chars long, as a C-syle escaped string that would be "1i\\\n")
> 
> Happy hacking
> Lucas

I think there's room in this idea for a `pass rotate` subcommand, that
will shove the old password down a line, then generate and insert the
new password. Should be relatively easy to implement *and* would help
satisfy some systems that have synchronisation issues around password
changes.

~Celti

Attachment: pgpBo84mwQSTK.pgp
Description: OpenPGP digital signature

_______________________________________________
Password-Store mailing list
[email protected]
https://lists.zx2c4.com/mailman/listinfo/password-store

Reply via email to