Hi all, I don't want to keep some things having done in history. How can I do this? Anyone has any idea? Thanks lonh
At 11:24 PM 12/21/2001 +0700, you wrote:
Hi all,
I don't want to keep some things having done in history. How can I do this?
I what history? Netscape? Konqueror? OpenOffice recent file menu? Shell? I presume you mean bash. You could manually edit .bash_history. Best done with a second shell after you're closed the first shell. You could use a shell that doesn't keep history permanently like tcsh. You could also set your the variable $HISTFILESIZE to something small in your ~/.bashrc: HISTFILESIZE='1' That will cause bash to only keep 1 command in history. Then you can always do one extra command like ls to clear it all out. Possibly you can do HISTFILESIZE='0' Is there a variable for the histfile its self? I wonder if you could set it to /dev/null somehow.
Anyone has any idea?
Thanks
lonh
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
---------------------------------------------------- Jonathan Wilson System Administrator Cedar Creek Software http://www.cedarcreeksoftware.com Central Texas IT http://www.centraltexasit.com
I suppose you could write a script that ran as a background process that kept checking the bash history file and automatically stripped out the bits you don't want to keep using sed or similar. Pat -- ----------------------------------- Pat Colbeck E-mail: pcolbeck@bashq.org Tel: I'm not telling -----------------------------------
participants (4)
-
Christopher Mahmood
-
JW
-
lonh SENG
-
Pat Colbeck