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