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 _______________________________________________ screen-users mailing list screen-users@gnu.org http://lists.gnu.org/mailman/listinfo/screen-users