Last Updated: September 15, 2018
· truedays

keep your .bash_history clean

Simple bash alias to NOT save your history (~/.bash_history) on exit.
Useful when you live and work in the shell--mistakes happen. Keep only the good examples.

alias u='unset HISTFILE; echo "Session is now incognito.";PS1="(⌐⎚-⎚) ${PS1}";'

1 Response
Add your response


Thank you for sharing this useful information, I will regularly follow your blog

about 1 month ago ·
Awesome Job

Frontend Web Developer for Games
Leamington Spa (United Kingdom)
Full Time