Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to display my prompt in color? I see a lot of text go up my screen, and a lot of crud. Something like (red)myName(red)@(blue)myMachine:~$(blue) would help simplify things a lot.

Much Appreciated.

share|improve this question
    
You should write one question per post, answering multiple questions is confusing and it doesn't allow to properly account for that is answered already. –  João Pinto Dec 6 '10 at 13:40
    
ok, ill edit it and create another one. thanks for the heads up. –  theTuxRacer Dec 6 '10 at 13:47
1  
Duplicate question with askubuntu.com/questions/13892/… –  teo96 Dec 6 '10 at 14:33
add comment

2 Answers 2

up vote 7 down vote accepted

You can just edit your ~/.bashrc file and remove the hash (#) from the line:

#force_color_prompt=yes

Save the file, and from then on, your newly-opened shells will be colored ;-)

share|improve this answer
add comment

About the prompt colors, check the following link: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.