I want to post this for someone else who might have the same issue
I use the bash shell.
The issue
---------
ls does not use colors.
git log does not show colors.
What I tried first (determines if you have the same issue as me)
------------------
I searched the internet and found a command:
This showed colorized ls output. This means the terminal type is correct (xterm/xterm-color didn't make a difference)
So I went for a search to enable colors in "git log".
Now when I did:
I got no colors !BUT! I got the color codes in the output. (Like [0,32m,...)
So somewhere it was not processing the color codes correctly.
What brought me to the solution
-------------------------------
I have read that you need CLICOLOR set in .bashrc.
However that did not work. THis only worked when I opened another bash shell in the existing one.
The solution
------------
Add
to
~username/.bash_profile
after doing this it worked.

I use the bash shell.
The issue
---------
ls does not use colors.
git log does not show colors.
What I tried first (determines if you have the same issue as me)
------------------
I searched the internet and found a command:
ls -G
This showed colorized ls output. This means the terminal type is correct (xterm/xterm-color didn't make a difference)
So I went for a search to enable colors in "git log".
Code:
git config --global color.ui true
Now when I did:
git log
I got no colors !BUT! I got the color codes in the output. (Like [0,32m,...)
So somewhere it was not processing the color codes correctly.
What brought me to the solution
-------------------------------
I have read that you need CLICOLOR set in .bashrc.
However that did not work. THis only worked when I opened another bash shell in the existing one.
The solution
------------
Add
Code:
export CLICOLOR=yes
~username/.bash_profile
after doing this it worked.