> > I updated to the masked baselayout and now there is no coloring
> > of "[EMAIL PROTECTED] ~ #" in the console.  Could this be a feature?
> >
> You probably upgraded bash at the same time.  With the new
> baselayout those colours are set in /etc/bash/bashrc:
> 
> if [[ -f /etc/DIR_COLORS ]] ; then
>   grep -q "^TERM ${safe_term}" /etc/DIR_COLORS && use_color=true
> elif type -p dircolors >/dev/null ; then
>   if dircolors --print-database | grep -q "^TERM ${safe_term}"; then
>     use_color=true
>   fi
> fi

The code in my bashrc that seems to correspond with the above code is
a bit different so I tried commenting it out and adding your's.  I
then ran env-update and 'source /etc/profile' but still no colors. 
Should I post my bashrc?  Maybe it wasn't updated properly because my
baselayout is hard masked?

- Grant

> 
> if ${use_color} ; then
>   if [[ ${EUID} == 0 ]] ; then
>     PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
>   else
>     PS1='\[\033[01;[EMAIL PROTECTED] \[\033[01;34m\]\w \$ \[\033[00m\]'
>   fi
> else
>   if [[ ${EUID} == 0 ]] ; then
>     # show root@ when we don't have colors
>     PS1='[EMAIL PROTECTED] \W \$ '
>   else
>     PS1='[EMAIL PROTECTED] \w \$ '
>   fi
> fi
> 
> --
> Peter

-- 
[email protected] mailing list

Reply via email to