LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Prompt Color (https://www.linuxquestions.org/questions/linux-newbie-8/prompt-color-19890/)

medamnit 04-30-2002 09:30 PM

Prompt Color
 
Does anyone know how to change the color of the prompt and make it stay each bootup as my root prompt?
i can change it alright, but whenever i restart i lose it.
this must be a simple thing.

thanks you heaps,

medamnit

taz.devil 04-30-2002 09:50 PM

See if this link helps out any.

http://www-106.ibm.com/developerwork.../l-tip-prompt/

medamnit 04-30-2002 10:24 PM

cool, thanks. that was a useful and interesting read. i found easier ways then how i've been doing it.

thanks
medamnit

medamnit 05-06-2002 04:08 AM

can i make it that root color is different to any other user that logs on? i'm getting lost w/ this virtual terminal.
so root is yellow and any other user will be green.

thanks,
medamnit

taz.devil 05-06-2002 11:03 AM

Yeah, what you could do is edit the user's .bash_profile in their home directory and change the PS1= line to what you choose theirs to be. Since .bash_profile is higher in priority than /etc/profile it'll be used first if found. Just let the root account default to /etc/profile. If you don't have a .bash_profile in your user's dir, just copy the /etc/profile over to your user home and rename it to .bash_profile and change the options as desired.


All times are GMT -5. The time now is 07:58 AM.