bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to enable infinite command history


From: suvayu ali
Subject: Re: How to enable infinite command history
Date: Wed, 1 Feb 2012 17:06:30 +0100

On Tue, Jan 31, 2012 at 18:23, Dennis Williamson
<dennistwilliamson@gmail.com> wrote:
> I have the same use case. Try one of my logging functions at
> http://stackoverflow.com/945288/26428

That link doesn't work for me, but I think you meant this question:
<http://stackoverflow.com/questions/945288/saving-current-directory-to-bash-history>

I personally use this:

export HISTTIMEFORMAT="(%F %T %Z) "
export PROMPT_COMMAND="history 1 >> $HOME/.history-timestamp;"

works great so far.

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]