//View Tip #814
» .. revisited
» ESC-g for glob expansion in bash
» another solution to #67
» Store a directory name to come back to
Similar Tips
» Find occurrences of a string in a large code base without firing» .. revisited
» ESC-g for glob expansion in bash
» another solution to #67
» Store a directory name to come back to
Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
If you're working in bash and want to quit without saving your history, you can do so using:
$$ gives the pid of the current bash instance, and the kill ends the process. There are other ways of disabling history in bash, but this can be used with no forward planning and any time/place you like.
kill -9 $$
$$ gives the pid of the current bash instance, and the kill ends the process. There are other ways of disabling history in bash, but this can be used with no forward planning and any time/place you like.
Comments
Add your comment
Why not to add clean command to .bash_logout?
Something like:
echo rm .bash_history >> .bash_logout
Something like:
echo rm .bash_history >> .bash_logout
Posted 2010-01-12 06:43:04
i believe you are a good writer, but have you erver thought to write some special artcals for peopel who likes shopping very much.
Posted 2010-07-15 22:48:57


# unset SAVEFILE;unset HISTFILE;