How can I prevent Bash from writing history entries to disk? My ~/.bashrc
contains the line
trap 'unset HISTFILE; exit' SIGHUP
but it doesn't have the desired effect. If I run history -c && history -w; exit
and open a new terminal, the history is empty, but if I type some more commands and exit, the commands are in the history when I open a new terminal. Any ideas?
w
rite permission on the history file? – Ulrich Schwarz Jul 07 '15 at 06:17