Re: [Hampshire] Top ten commands in history

Top Page

Reply to this message
Author: Graham Bleach
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Top ten commands in history
On 30/01/07, Andy Smith <andy@???> wrote:
> On Tue, Jan 30, 2007 at 08:43:37AM +0000, Alan Pope wrote:
> > So, what are your top ten commands in the history? What can we learn from this? :)
>
> We learn that my screen sessions aren't logging anthing to
> ~/.bash_history. Anyone know how I fix that? Last thing in there
> is me calling "screen -aAdrU" to re-attach the screen. Ideally I
> want all commands from all screen windwos appened to one
> .bash_history.
>
> I thought it:
>
> shopt -s histappend
>
> in .bashrc would do this, but obviously not..


Setting the histappend option in .bashrc works for me; I invoke
screen, issue a command. When I exit the shell running inside screen,
the command is appended to .bash_history

G