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.
-
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 PintoDec 6, 2010 at 13:40
-
About the prompt colors, check the following link: tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html– João PintoDec 6, 2010 at 13:41
-
ok, ill edit it and create another one. thanks for the heads up.– theTuxRacerDec 6, 2010 at 13:47
-
1Duplicate question with askubuntu.com/questions/13892/…– teo96Dec 6, 2010 at 14:33
-
2Possible duplicate of Is it possible to color the prompt in Bash?– David FoersterFeb 27, 2018 at 4:26
Add a comment
|
1 Answer
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.