theTuxRacer Asked: 2010-12-07 05:38:16 +0800 CST2010-12-07 05:38:16 +0800 CST 2010-12-07 05:38:16 +0800 CST Displaying colors in the prompt 772 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. bash prompt ps1 1 Answers Voted Best Answer Pavlos G. 2010-12-07T05:50:59+08:002010-12-07T05:50:59+08:00 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.
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.