Re: format level 3 prompt

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



> On Wed, 18 Nov 2009 08:25:48 -0700, m.roth-x6lchVBUigD1P9xLtpHBDw wrote:
> [...]
>>
>> Ah! Permission/ownership problem?
>>
> Good suggestion.  I found that for myUser .bashrc had the wrong
> permissions and .bash_profile was missing!  I am sure that this
> happened because I copied /home/myUser was copied in from backup
> before the account was created.  We won't do that again.
>
> 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

_______________________________________________
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