Link to home
Start Free TrialLog in
Avatar of jkipp_66
jkipp_66

asked on

Changing Environment

I am trying to change the text color of the command line according to which user is logged in. I have placed the following in both '/etc/profile' and '/etc/bashrc' , but it doesn't work.

if [ $USER = 'root' ] ; then
        COLOUR=41  #red
else
        COLOUR=44  #blue
fi

I am using RH6, what I am missing to make this work?
Thanks
ASKER CERTIFIED SOLUTION
Avatar of pogga
pogga

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial