[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.
- Re: How to enable infinite command history,
suvayu ali <=