[Gllug] bash prompt

Paul Roberts sakar at stelo.uklinux.net
Tue Dec 3 12:56:57 UTC 2002


SteveC <steve at fractalus.com> writes:

> # Change the window title of X terminals 
> case $TERM in
>         xterm*|rxvt|eterm)
>                 PROMPT_COMMAND='echo -ne 
> "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$
> HOME/~}\007"'
>                 ;;
>         screen)
>                 PROMPT_COMMAND='echo -ne 
> "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HO
> ME/~}\033\\"'
>                 ;;
> esac

What is the value of $TERM?

Cheers, - Paul

-- 
GPG fingerprint:                Esperanto parolata
0CB2 9210 3066 B41D 3422  AB6F 78F8 189E FD05 90CE

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list