[Top][All Lists]

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

Re: Dynamic Title

From: Alan Young
Subject: Re: Dynamic Title
Date: Thu, 28 May 2009 15:25:22 -0600

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

reply via email to

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