4

I've just tried to highlight syntax in iTerm 2, but getting no result. I tried config git (Enabling Git syntax highlighting for Mac's terminal), played with iTerm profiles but can't reach at result.

Actually, I have Colbat2 theme from this set: https://github.com/mbadolato/iTerm2-Color-Schemes and my shell looks like this:

and I want it to look like this (but with my color profile):

Can I do this?


UPDATE

it only works for git status

Community
  • 1
  • 1
nikoloza
  • 968
  • 2
  • 12
  • 30

2 Answers2

3

@irakli helped me to do this with oh-my-zsh.

Thanks

Community
  • 1
  • 1
nikoloza
  • 968
  • 2
  • 12
  • 30
2

It's very simple

git config --global color.ui auto

for advanced configuration read this: http://git-scm.com/book/en/Customizing-Git-Git-Configuration#Colors-in-Git


UPDATE

forget to mention it's not iTerm 2 specific

Irakli
  • 901
  • 1
  • 7
  • 12