Separate Shell Command history
Change the permissions of your
.sh_history to 000.
$ chmod 000 .sh_history
After this is done, the various shells that may exist will not save every command to the file
thus keeping the history in memory. Since every memory is different, as every shell is run
in a different process, every shell will have its own history (in memory) of commands.