Use "unset HISTFILE" to disable Bash command history

If you temporarily don't want Bash to save the commands you type to its history, you just need to unset the HISTFILE environment variable:

unset HISTFILE

This is useful if you're pasting in passwords, authorization keys, etc.