Enabling Git syntax highlighting for Mac's terminal

前端 未结 7 1559
滥情空心
滥情空心 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:15

    For seeing different colors for the diff command, use:

    git config --global color.diff true
    

    To globally change colors for most commands, use:

    git config --global color.ui true
    

提交回复
热议问题