Enable Colorful Terminal in Debian and Ubuntu

By | 2013/07/08

Debian and Ubuntu both disable colors in the terminal by default. I’ll show you how to turn on colors for the terminal!


Edit the file .bashrc in your home directory:

$ vim .bashrc

Uncomment the line that says ‘force_color_prompt=yes’ then logout and back in, or type the following:

source ~/.bashrc
01_color_prompt 02_color_prompt

Done!

11 thoughts on “Enable Colorful Terminal in Debian and Ubuntu

  1. Markus

    Thanks! But for D. 7 x64 there was no “force_color_prompt” line. Instead there are 5 export, eval and alias lines I had to uncomment. But theres an info above them, so everythings fine 🙂

    Reply
    1. Jacob Coleman

      Make sure you’re not doing it with sudo or root, or that is all it will show.

      Reply
  2. Jared Null

    you don’t have to logout, you can just do: source ~/.bashrc

    Reply
  3. wkyp

    hello guys! what do you mean by uncoment Uncomment the line that says ‘force_color_prompt=yes’ ?

    Reply
  4. wkyp

    Hello guys! what do you mean by Uncomment the line that says ‘force_color_prompt=yes’?

    Reply
    1. Scott Miller Post author

      Change this line:

      #force_color_prompt=yes
      

      to this:

      force_color_prompt=yes
      
      Reply
  5. Rafael Borges

    sed -i ‘s/#force_color_prompt=yes/force_color_prompt=yes/’ ~/.bashrc

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.