I tried adding history -c
to ~/.bash_logout
but seems not working.
Add:
I'm having success by adding these lines into my ~/.bashrc
(referred from here)
unset HISTFILE
export LESSHISTFILE=/dev/null
I still don't know why history -c
method won't work.