Setting colors for ls in git bash on windows

前端 未结 4 644
醉话见心
醉话见心 2021-01-30 10:48

I have installed GitHub for Windows recently and am using the git bash prompt - the one thing that is bugging me right now is when I type LS all directories are listed in blue.<

4条回答
  •  醉话见心
    2021-01-30 11:31

    I was able to modify DIR_COLORS under /c/Program\ Files/Git/etc just by adding ;47 to line 49:

    was

    DIR 01;34
    

    and now is

    DIR 01;34;47
    

    So now the directories are listed with a white background and much easier to read.

提交回复
热议问题