Windows Terminal下配置Git Bash

Windows Terminal配置Git Bash


  1. 打开Windows Terminal配置文件profiles.json;
  2. 在"profiles"->"list"属性下添加新配置:
 1 {
 2     "acrylicOpacity": 0, // 透明度
 3     "closeOnExit": true, // 关闭的时候退出命令终端
 4     "colorScheme": "Campbell", // 样式配置
 5     "commandline": "C:\\Program Files\\Git\\bin\\bash.exe", // git-bash的命令行所在位置
 6     "cursorColor": "#FFFFFF", // 光标颜色
 7     "cursorShape": "bar", // 光标形状
 8     "fontFace": "YaHei Consolas Hybrid", // 字体配置,选择你电脑上已安装的字体
 9     "fontSize": 14, // 终端字体大小
10     "guid": "{1c4de342-38b7-51cf-b940-2309a097f589}", // 唯一的标识,改成和其他的已有终端不一样
11     "historySize": 9001, // 终端窗口记忆大小
12     "icon": "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico", // git的图标
13     "name": "git-bash", // 标签栏的标题显示
14     "padding": "0, 0, 0, 0", // 边距
15     "snapOnInput": true,
16     "startingDirectory": "%USERPROFILE%", // gitbash 启动的位置(默认在C盘的用户里面的就是 ~ )
17     "useAcrylic": false // 是否开启透明度
18 }

 

posted @ 2020-03-26 11:33  l1ncj  阅读(3316)  评论(2编辑  收藏  举报