Quickly color your prompt in Ubuntu 9.10

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

.bashrc

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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: