Is there a way to temporarily suspend history tracking in bash, so as to enter a sort of "incognito" mode? I'm entering stuff into my terminal that I don't want recorded, sensitive financial info.
|
This should be what you're looking for:
From
|
The value of HISTFILE is only checked when bash exits, so the first method doesn't work as is (if you restore the value, the command will be saved). set +o history does work as directed. – Gilles Apr 8 '11 at 20:10 |
|
Thanks, excellent. I'll use set +o history and set -o history to toggle back and forth when I'm doing secret stuff ;) – TK Kocheran Apr 8 '11 at 23:38 |
|
Using bash, set |
||||
|
|
|
Make sure that Another possibility is to start a new bash session that doesn't save its history.
|
|||
|
|