Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Duplicate question with… – teo96 Dec 6 '10 at 14:33
up vote 8 down vote accepted

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


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

share|improve this answer

About the prompt colors, check the following link:

share|improve this answer

Your Answer


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.