Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git syntax highlighting in iTerm 2

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

like image 868
nikoloza Avatar asked Oct 31 '25 03:10

nikoloza


1 Answers

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

like image 74
Irakli Avatar answered Nov 01 '25 16:11

Irakli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!