Archive for January, 2010

Quickly color your prompt in Ubuntu 9.10

January 31, 2010

I found this while trying to color my bash prompt by using my old post. It was simpler than I thought. Just open your .bashrc file. Type this in a terminal:

nano .bashrc

Scroll down a little bit and you should see a line with #force_color_prompt=yes


Remove the # comment sign and Ctrl-X to exit and y to save the file as .bashrc. To get the new .bashrc in the terminal simply type

source .bashrc

That’s it. You got the color prompt!