[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic Title
From: |
Asif Iqbal |
Subject: |
Re: Dynamic Title |
Date: |
Sun, 31 May 2009 23:47:51 -0400 |
On Thu, May 28, 2009 at 5:25 PM, Alan Young <address@hidden> wrote:
> On Wed, May 27, 2009 at 20:17, Asif Iqbal <address@hidden> wrote:
>> How do I change the title of a screen window (tab) dynamically, to
>> match the hostname I ssh to ?
>
> I created a file of aliases for all of the servers I connect to:
>
> alias server='echo -e "\ekservername\e\\" && ssh server <ssh options>
> && echo -e "\ekbash\e\\"'
>
> (all on one line) This will change the window title (akin to Ctrl-A
> Shift-A) to the servername and back again when I exit that server. An
> actual line (with ip obscured) looks like this:
>
> alias archivedb='echo -e "\ekarchivedb\e\\" && ssh aaa.bbb.ccc.ddd -p
> 24021 -o GSSAPIAuthentication=no -t "screen -RDl" && echo -e
> "\ekbash\e\\"'
> --
> Alan
This is what I was looking for.
http://www.tenshu.net/screen_ssh/
>
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?