Thanks, that's what I wanted. Turns out Ubuntu is shipping a very outdated version of Pass which is why I didn't find this in the man pages.
Alex On Wed, 29 Mar 2017 at 17:28 Chris Bero <[email protected]> wrote: > Hi Alex, > > I think you're looking for the --in-place / -i flag for pass generate. > > If --in-place or -i is specified, do not interactively prompt, and only > replace the first line of the password file with the new generated > password, keeping the remainder of the file intact. > > > Chris Bero > > On Wed, Mar 29, 2017 at 11:22 AM, Alex Thorne <[email protected] > > wrote: > > As suggested in the docs, I add any extra info on additional lines > separated from the top (password) line by a blank line. > > If I run `pass generate` to replace an existing password, it replaces the > whole file with the newly generated password. I think a more desirable > behaviour would be that only the top line containing the password is > replaced, and any additional information on subsequent lines is preserved. > > Let me know what you think. I'm not familiar with the source code so have > not submitted a patch but could potentially investigate this in the future. > > Regards, > Alex > > _______________________________________________ > Password-Store mailing list > [email protected] > https://lists.zx2c4.com/mailman/listinfo/password-store > > >
_______________________________________________ Password-Store mailing list [email protected] https://lists.zx2c4.com/mailman/listinfo/password-store
