Re: rename each screen according to hostname

2008-05-27 Thread Trent W. Buck
On Tue, May 27, 2008 at 06:54:10PM -0700, Micah Cowan wrote: > Trent W. Buck wrote: > > On Tue, May 27, 2008 at 10:57:59AM +0100, Stephane Chazelas wrote: > >> On Tue, May 27, 2008 at 07:51:58PM +1000, Chris Henderson wrote: > >>> I ssh to a lot of servers and every time I have to do C-a A to renam

Re: rename each screen according to hostname

2008-05-27 Thread Micah Cowan
Trent W. Buck wrote: > On Tue, May 27, 2008 at 10:57:59AM +0100, Stephane Chazelas wrote: >> On Tue, May 27, 2008 at 07:51:58PM +1000, Chris Henderson wrote: >>> I ssh to a lot of servers and every time I have to do C-a A to rename >>> the screen session to the hostname I ssh to. Is there anyway sc

Re: rename each screen according to hostname

2008-05-27 Thread Geraint Edwards
"Trent W. Buck" <[EMAIL PROTECTED]> said (on Tue, May 27, 2008 at 08:39:50PM +1000): > > ssh() { screen -X title "[EMAIL PROTECTED]"; command ssh "$@"; } > > I think the OP wants to change the session name, not the screen > (window) title. Also, isn't setting the title best done w

Re: rename each screen according to hostname

2008-05-27 Thread Trent W. Buck
On Tue, May 27, 2008 at 10:57:59AM +0100, Stephane Chazelas wrote: > On Tue, May 27, 2008 at 07:51:58PM +1000, Chris Henderson wrote: > > I ssh to a lot of servers and every time I have to do C-a A to rename > > the screen session to the hostname I ssh to. Is there anyway screen > > can automatical

Re: rename each screen according to hostname

2008-05-27 Thread Jean Jordaan
>> I ssh to a lot of servers and every time I have to do C-a A to rename >> the screen session to the hostname I ssh to. I run screen on remote servers. All servers have something like this in my user's .bashrc: PS1='${debian_chroot:+($debian_chroot)}\[\033[01;[EMAIL PROTECTED]:\[\0 33[01;34m\]\w

Re: rename each screen according to hostname

2008-05-27 Thread Stephane Chazelas
On Tue, May 27, 2008 at 07:51:58PM +1000, Chris Henderson wrote: > I ssh to a lot of servers and every time I have to do C-a A to rename > the screen session to the hostname I ssh to. Is there anyway screen > can automatically change the name to the host I am connected to? [...] ssh() { screen -X

rename each screen according to hostname

2008-05-27 Thread Chris Henderson
I ssh to a lot of servers and every time I have to do C-a A to rename the screen session to the hostname I ssh to. Is there anyway screen can automatically change the name to the host I am connected to? Thanks for any help. ___ screen-users mailing lis