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.
Asked
Active
Viewed 3,433 times
8

Zanna
- 70,465

theTuxRacer
- 16,185
-
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 06 '10 at 13:40
-
ok, ill edit it and create another one. thanks for the heads up. – theTuxRacer Dec 06 '10 at 13:47
-
1Duplicate question with http://askubuntu.com/questions/13892/is-it-possible-to-color-the-prompt-in-bash – teo96 Dec 06 '10 at 14:33
-
2Possible duplicate of Is it possible to color the prompt in Bash? – David Foerster Feb 27 '18 at 04:26
-
About the prompt colors, check the following link: http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html – João Pinto Dec 06 '10 at 13:41
1 Answers
9
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.

David Foerster
- 36,264
- 56
- 94
- 147

Pavlos G.
- 8,844