[Gllug] bash prompt

Tethys tet at accucard.com
Tue Dec 3 13:41:25 UTC 2002


Paul Roberts writes:

>> 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?

In this case, irrelevant. All the PROMPT_COMMAND setting is used for here
is to set the window title.

Tet

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




More information about the GLLUG mailing list