[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A Feature Request for History
From: |
Chet Ramey |
Subject: |
Re: A Feature Request for History |
Date: |
Mon, 13 Jun 2011 15:26:27 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 |
On 6/13/11 1:10 PM, Bradley M. Kuhn wrote:
> The only feature you describe above missing with that configuration is
> that existing shells won't find history commands written out
> in-between. I have a tendency to close/open bash shells, so I don't run
> into that problem.
>
> Unfortunately, having looked recently at the history code, I think
> adding a feature whereby existing running shells "notice" the history
> file has changed would be a large rewrite to the history code. I think
> that would be a useful optional feature, though.
People have had success using `history -a' and `history -n' to accomplish
this. The idea is to append your latest command to some common history
file, then use history -n to read other shells' commands into your
history list.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/