How to correctly enable ANSI colors in ConEmu + Git Bash?

gpap picture gpap · Dec 20, 2014 · Viewed 7.5k times · Source

I'm using Git Bash with ConEmu to make it look cool. However, upon installing Composer the colors seem to be escaped:

enter image description here

So Git Bash does not support all the colors. Checking the AnsiColors256.ans file:

enter image description here

After lots of Googling, I still haven't found any solution. I don't want to use Ansicon or other console emulator, ConEmu is fine for me.

My settings:

  • Inject ConEmuHk enabled
  • Ansi X3.64 / xterm 256 enabled
  • Windows 7 x64
  • Git Bash 1.9.5
  • ConEmu 141208

How do I enable all the colors? This is annoying my need for a Console-Zen experience :(

Answer

Maximus picture Maximus · Dec 21, 2014

Run ConEmu from WinR (type full path to sh.exe if needed)

ConEmu -basic -cmd sh.exe -l -i

Run composer, ANSI is working.

ANSI is working