I use iTerm for doing things such as creating passwords by selecting random words from
/usr/dict. I prefix the commands with a space so they aren't saved in the shell history. I discovered to my horror that iTerm2 keeps recent paste, commands and other history. See
Session > Open Paste / command / .... Its all there in plain text sqlite db file.
I found that these are saved to
~/Library/Application\ Support/iTerm2/ and I simply deleted these files. However this is not a very good solution since everything is deleted and has to be done every time.
My questions are - is this data saved anywhere else and is there a way to create secure sessions so this doesn't happen?