GitBash:修改GitBash主题配色和字体

打开GitBash,使用命令: cd ~ 

然后: vi .minttyrc 

使用下列内容替换已有内容:

Font=Consolas
FontHeight=13

ForegroundColour=131,148,150
BackgroundColour=0,43,54
CursorColour=220,50,47

Black=7,54,66
BoldBlack=0,43,54
Red=220,50,47
BoldRed=203,75,22
Green=133,153,0
BoldGreen=88,110,117
Yellow=181,137,0
BoldYellow=101,123,131
Blue=38,139,210
BoldBlue=131,148,150
Magenta=211,54,130
BoldMagenta=108,113,196
Cyan=42,161,152
BoldCyan=147,161,161
White=238,232,213
BoldWhite=253,246,227
BoldAsFont=-1
FontSmoothing=full
FontWeight=600
FontIsBold=yes
Locale=C
Charset=UTF-8

Columns=110
Rows=26
CursorType=block

重启GitBash,最终效果:

 

------------------------------------------  Cygwin 配色方案 ----------------------------------------------------

Font=Consolas
FontHeight=9

BackgroundColour=216,230,206
ForegroundColour=0,0,0
CursorColour=0,0,0
Black=0,0,0
BoldBlack=0,0,0
Red=130,68,6
BoldRed=246,155,64
Green=6,130,68
BoldGreen=64,246,155
Yellow=68,130,6
BoldYellow=155,246,64
Blue=68,6,130
BoldBlue=155,64,246
Magenta=130,6,68
BoldMagenta=246,64,155
Cyan=6,68,130
BoldCyan=64,155,246
White=255,255,255
BoldWhite=255,255,255

Columns=120
Rows=34
CursorType=block
BoldAsFont=-1
FontWeight=400
FontIsBold=no

用法:在当前用户目录下新建一个  .minttyrc  文件:

 

 最终效果:

 

 See: https://www.cnblogs.com/phang/p/5862495.html

(完)

posted @ 2018-10-11 10:44  夜行过客  阅读(5529)  评论(0编辑  收藏  举报