title: Don't save current bash session to history
body: <p>I notice that when opening <code>.bash_history</code> that it contains only the entries from my previous session, it seems that the current session is appended only on exit. Is there any way to prevent the current session from saving? Even crashing <code>bash</code> is an option if one knows how to do that. I found that I can <code>kill -9</code> the process, but if there is a better way I would love to know.</p>