|
|
Clear the terminal's command history
If you'd rather not have your history saved to a file at all, add the following line to your ~/.bash_profile:
This way, your command history is limited to only those commands you used during the current session. More information and options can be found on the bash man page (
Clear the terminal's command history
I didn't have a .bash_profile, so I made one with only this line in it.
Clear the terminal's command history
To get it to work for you, you might need to log out and back in. bash_profile is only read at login time. Alternatively, you can put it in your ~/.bashrc file (read whenever a new shell is opened). It is redundant to set env variables everytime you start a new shell, but I do it often because it's convenient and guaranteed to work right away.
Clear the terminal's command history
Did you remove your old .bash_history file (
rm ~/bash_history)? My suggestion will keep the history file from being created, but I don't think it will stop an already created history file from being used.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|