<div dir="ltr">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.<div><br></div><div>Alex</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, 29 Mar 2017 at 17:28 Chris Bero <<a href="mailto:bigbero@gmail.com">bigbero@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">Hi Alex,<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">I think you're looking for the --in-place / -i flag for pass generate.</div><div class="gmail_msg"><br class="gmail_msg"></div><blockquote class="gmail_quote gmail_msg" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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.<br class="gmail_msg"></blockquote></div><div class="gmail_extra gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><div class="m_559756029083267305gmail_signature gmail_msg" data-smartmail="gmail_signature"><div dir="ltr" class="gmail_msg"><p class="gmail_msg">Chris Bero<br class="gmail_msg"></p></div></div></div>
<br class="gmail_msg"><div class="gmail_quote gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Mar 29, 2017 at 11:22 AM, Alex Thorne <span dir="ltr" class="gmail_msg"><<a href="mailto:lexiconifernelius@gmail.com" class="gmail_msg" target="_blank">lexiconifernelius@gmail.com</a>></span> wrote:<br class="gmail_msg"></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="gmail_msg">As suggested in the docs, I add any extra info on additional lines separated from the top (password) line by a blank line.<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">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.</div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Regards,</div><div class="gmail_msg">Alex</div></div>
<br class="gmail_msg"></blockquote></div></div><div class="gmail_extra gmail_msg"><div class="gmail_quote gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br class="gmail_msg">
Password-Store mailing list<br class="gmail_msg">
<a href="mailto:Password-Store@lists.zx2c4.com" class="gmail_msg" target="_blank">Password-Store@lists.zx2c4.com</a><br class="gmail_msg">
<a href="https://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" class="gmail_msg" target="_blank">https://lists.zx2c4.com/mailman/listinfo/password-store</a><br class="gmail_msg">
<br class="gmail_msg"></blockquote></div><br class="gmail_msg"></div>
</blockquote></div>