[Gllug] screen and ssh challenge

- Tethys tethys at gmail.com
Fri Jun 8 11:27:50 UTC 2007


On 6/8/07, Chris Jones <cmsj at tenshu.net> wrote:

> I've been reading around the screen docs on a quest. A quest to have ssh
> automagically set the screen title to the hostname (preferably not the
> fqdn) of the machine I am ssh'ing to.

export PROMPT_COMMAND='echo -ne "\033k${HOSTNAME%%.*}\033\\"'

Tet

-- 
Perl is like vise grips. You can do anything with it but it is the
wrong tool for every job. -- Bruce Eckel
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list