[NTLUG:Discuss] keeping your bash history.

MadHat madhat at unspecific.com
Tue Aug 26 22:03:42 CDT 2003


On Mon, 2003-08-25 at 15:18, Richard Geoffrion wrote:
> To keep your bash history from being recorded during a session, one can
> issue the command  'unset HISTFILE' before exiting.
> 
> HOWEVER, when one has MULTIPLE terminal windows opened up, only that last
> one to close seems to save its HISTFILE information into the bash history.
> 
> Is there a way to force a write to the bash history as one exits each shell
> so that the entire history of all bash sessions are recorded?   Could this
> be automated in the logout/logoff process?
> 

rm ~/.bash_history && ln -s /dev/null ~/.bash_history


-- 
MadHat at Unspecific.com
`But I don't want to go among mad people,' Alice remarked.
`Oh, you can't help that,' said the Cat: `we're all mad here...'
   -- Lewis Carroll - _Alice's_Adventures_in_Wonderland_




More information about the Discuss mailing list