kgdafg
Last Updated: September 15, 2018
·
52
· 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

30693

Thank you for sharing this useful information, I will regularly follow your blog
http://theimpossible-quiz.com

about 1 month ago ·
Awesome Job

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