Delete bash history automatically

Sounds sketchy lol. But yes, you can entirely disable bash history by adding the following to your .bashrc:

set +o history

If you only want to disable the history file (and not the ephemeral in-memory history), use this instead:

unset HISTFILE
2 Likes