On Thu, May 28, 2009 at 5:25 PM, Alan Young <alansyoung...@gmail.com> wrote:
> On Wed, May 27, 2009 at 20:17, Asif Iqbal <vad...@gmail.com> 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?


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to