[CentOS] format level 3 prompt

Wed Nov 18 16:48:58 UTC 2009
Nicolas Thierry-Mieg <Nicolas.Thierry-Mieg at imag.fr>

Mike - email ignored wrote:
> On Wed, 18 Nov 2009 09:22:44 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw wrote:
>
>>> But now, I still do not see how the prompt is set since I have no
>>> /etc/sysconfig/bash-prompt-default .
>>
>> > From the code /etc/bashrc:
>> <...>
>>      screen)
>>          if [ -e /etc/sysconfig/bash-prompt-screen ]; then
>>              PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
>>          else
>>          PROMPT_COMMAND='echo -ne
>> "\033_${USER}@${HOSTNAME%%.*}:${PWD/#$HOME/~}"; echo -ne "\033\\"'
>>          fi
>>          ;;
>> <...>
>>
>>           mark
>
> Not so.  With this debug:
>
<snip>
> ---
>
> I get:
>
> TERM = linux
> doing default
>
> The mystery remains.

what do you get with these:
echo $PROMPT_COMMAND
echo $PS1

if $PROMPT_COMMAND has a value you could grep for it (or for 
PROMPT_COMMAND) in /etc and subdirs, and try to find it?