Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to color the prompt ("user@host:~/dir/$") in Bash? Some commands generate a lot of output and it's sometimes hard to find where it started. Coloring would help a lot.

share|improve this question
    
Yes you can.See this link – karthick87 Nov 18 '10 at 19:31
up vote 20 down vote accepted

Found an easy way to do it:

Uncomment force_color_prompt=yes in ~/.bashrc.

share|improve this answer
1  
That's certainly the easiest way :) – Little Jawa Nov 19 '10 at 7:30
    
I absolutely overlooked this option in the ~/.bashrc! Thanx anyways! – Ubuntuser May 4 '11 at 10:54

Bashish is a theme engine for the console; check some screen shots here :-)

It's easy to install:

  1. Click on the download link on the website
  2. get the deb for Ubuntu
  3. double-click the downloaded file and Software center will install it for you.

After that, close any open terminals and type:

bashish list

to get a list of already built themes.

Have fun :-)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.