Probably not the best route, but it works just as good without scripts, open Terminal window and type:
"force quit" Finder.
in %home folder% trash .bash_history file and delete contents of .bash_history folder and lock (Get info, and tick "Locked")
- In Terminal, type history -c (probably not required)
- reverse the showing of files as above, but use FALSE instead, and re-launch Finder again.
All history will never be kept across any session of Terminal.
Although the .bash_history fill will still be created, the fact .bash_folder cannot be written to because its locked, your good to go
You'll get an error every time Terminal opens mkdir... but that is nothing to worry about.
If u wish to re-enable history, just show all files again and unlock the folder.
Code:
defaults write com.apple.finder AppleShowAllFiles TRUE
"force quit" Finder.
in %home folder% trash .bash_history file and delete contents of .bash_history folder and lock (Get info, and tick "Locked")
- In Terminal, type history -c (probably not required)
- reverse the showing of files as above, but use FALSE instead, and re-launch Finder again.
All history will never be kept across any session of Terminal.
Although the .bash_history fill will still be created, the fact .bash_folder cannot be written to because its locked, your good to go
You'll get an error every time Terminal opens mkdir... but that is nothing to worry about.
If u wish to re-enable history, just show all files again and unlock the folder.
Last edited: