Enabling Git syntax highlighting for Mac's terminal

前端 未结 7 1566
滥情空心
滥情空心 2021-01-29 21:38

I miss the Git syntax highlighting I had on Windows for every \"git .*\" command like green staged filenames, some bolding, etc.

How do I enable Git syntax highlighting

7条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 22:05

    Note: starting git1.8.4 (June 2013), you won't have to do anything:

    Many tutorials teach users to set "color.ui" to "auto" as the first thing after you set "user.name/email" to introduce yourselves to Git.
    Now the variable defaults to "auto".

提交回复
热议问题