[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Append history from each shell upon exiting GNU Screen
From: |
Greg Wooledge |
Subject: |
Re: Append history from each shell upon exiting GNU Screen |
Date: |
Mon, 12 Sep 2011 08:36:07 -0400 |
User-agent: |
Mutt/1.4.2.3i |
On Sun, Sep 11, 2011 at 11:23:48PM -0800, Roger wrote:
> When using GNU Screen (or other terminal multiplexer), I noticed the terminal
> multiplexer never gives each bash shell opened, a chance to write the history
> file on exit.
>
> The usual result after an initial install for several months, the history
> file will
> remain practically empty.
That's got nothing to do with screen. Any long-lived terminal will
have the same behavior. If you want to write to the history file, you
can do so at any time:
$ help history
...
-a append history lines from this session to the history file