[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rename each screen according to hostname
From: |
Micah Cowan |
Subject: |
Re: rename each screen according to hostname |
Date: |
Tue, 27 May 2008 18:54:10 -0700 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080505) |
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 screen
>>> can automatically change the name to the host I am connected to?
>> [...]
>>
>> ssh() { screen -X title "address@hidden"; command ssh "$@"; }
>
> I think the OP wants to change the session name, not the screen
> (window) title.
Well, the OP explicitly mentioned C-a A...
--
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer,
and GNU Wget Project Maintainer.
http://micah.cowan.name/