3 ms·
I've enjoyed great success by symlinking the various history files to /dev/null That way the history for the current window remains but after the window closes
by mdaniel 12y ago
I've enjoyed great success by symlinking the various history files to /dev/null
That way the history for the current window remains but after the window closes any accidental password-on-the-command-line mistakes will vaporize.
for i in .sh_history .bash_history .lesshst .mysql_history etc
do
ln -s /dev/null $i
done