Setting colors for ls in git bash on windows

前端 未结 4 657
醉话见心
醉话见心 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:35

    Check if you have the file: %USERPROFILE%\.minttyrc
    In that file you can configure the RGB values for console colors.
    I use the following to have colors easy to read in a dark background:

    BoldBlack=128,128,128
    Red=255,64,40
    BoldRed=255,128,64
    Green=64,200,64
    BoldGreen=64,255,64
    Yellow=190,190,0
    BoldYellow=255,255,64
    Blue=0,128,255
    BoldBlue=128,160,255
    Magenta=200,64,255
    BoldMagenta=255,128,255
    Cyan=64,190,190
    BoldCyan=128,255,255
    White=200,200,200
    BoldWhite=255,255,255
    

提交回复
热议问题