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
Done!
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 🙂
Make sure you’re not doing it with sudo or root, or that is all it will show.
you don’t have to logout, you can just do: source ~/.bashrc
Thanks! Updated.
Thank’s Good Tip!!!!
hello guys! what do you mean by uncoment Uncomment the line that says ‘force_color_prompt=yes’ ?
Hello guys! what do you mean by Uncomment the line that says ‘force_color_prompt=yes’?
Change this line:
to this:
omg silly me thanks mate !!!
sed -i ‘s/#force_color_prompt=yes/force_color_prompt=yes/’ ~/.bashrc
How to setup colors for su – ?