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,430 times
8
Zanna
- 69,223
- 56
- 216
- 327
theTuxRacer
- 15,945
- 22
- 71
- 91
-
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?](https://askubuntu.com/questions/13892/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
- 35,754
- 55
- 92
- 145
Pavlos G.
- 8,734
- 3
- 32
- 35