[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rename each screen according to hostname

From: Jean Jordaan
Subject: Re: rename each screen according to hostname
Date: Tue, 27 May 2008 18:12:43 +0800

>> 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:

33[01;34m\]\w\[\033[00m\]\$ '

That gives me a prompt and window titles that incorporate the
servername, like the following (cut'n'pasted from the window list):

 12 address@hidden:~/src/gplus-0.40.00
 13 address@hidden:~/mense/jean_jordaan/smsbackup

On my local machine, the screen escape key is ctrl-z. On remote ones,
I leave it as ctrl-a. That way, the right screen gets the message when
I join a remote screen session from a window of the local session.

jean . .. .... //\\\oo///\\

reply via email to

[Prev in Thread] Current Thread [Next in Thread]