Hi,

On Sat, 11 Aug 2001, Andrew Lankford wrote:

> I have the habit of running several terminals at once.  Naturally
> each instance of rxvt has the same title by default, and that can
> make it difficult to tell one window/icon from the next.

I had the same difficulties when dealing with a bunch of rxvt windows.
My rxvt's now display user, host and path as title using this (bash)
function:

cd ()
{
    if [[ $* = "" ]]; then
        builtin cd;
        echo -ne "\e]2;$LOGNAME@$HOSTNAME : ~\a";
    else
        builtin cd "$*";
        echo -ne "\e]2;$LOGNAME@$HOSTNAME : $PWD\a";
    fi
}


  cu.
    :
    Christian

Reply via email to