Re: format level 3 prompt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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?

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux