[CentOS] format level 3 prompt

Wed Nov 18 16:50:54 UTC 2009
m.roth at 5-cent.us <m.roth at 5-cent.us>

> On Wed, 18 Nov 2009 09:22:44 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw wrote:
> Mike wrote:
>>> On Wed, 18 Nov 2009 08:25:48 -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
>>         ;;
>> <...>
<snipo>
> I get:
>
> TERM = linux
> doing default
>
> The mystery remains.
>
No, we're getting closer. What you need to find out is what's setting TERM
to linux, which is further back than /etc/bashrc. Is the user logging
directly onto the Linux box, or are they from, say, a WinDoze box via
putty, or ...?

       mark