I expect I might take more care about maintaining a tidy history (see my other comment about splitting out separate histories by context), and reflexively clear bits of my history when I don&#x27;t want them hanging around in the way of a ctrl-r - which would certainly include bits of passwords and anything pasted.<p>That said, this seems to use PROMPT_COMMAND to log off history, which would not give the opportunity for such tidying.  Worrisome.