Y
Hacker News
new
|
ask
|
show
|
jobs
by
jcoffland
3671 days ago
FYI, if you want your bash history to go dark temporarily run:
export HISTFILE=
The rest of your session will not be logged.
1 comments
ymse
3671 days ago
The default bash setting is to not write history until the session terminates. In which case the whole session will be forgotten, not just the stuff after overwriting HISTFILE (I always set it to /dev/null FWIW, didn't know blank was sufficient).
link