windows terminal 中添加git-bash
1. 将git-bash添加到Windows的用户path中
- 右键我的电脑,点击属性 => 高级系统设置
- 高级 => 环境变量
- 双击用户变量中的变量Path
- 新建 => 浏览
- 选中git-bash中的bin目录点击确定
- win+r输入bash后可以看出调出了git-bash,说明配置成功了
2. 打开Windows terminal
- 打开profiles.json文件
- 在json文件中找到profiles选项
- 在其中添加配置如下
{
"acrylicOpacity" : 0.75,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "bash.exe",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 12,
"historySize" : 9001,
"name" : "git-bash",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
}
注意:因为没有设置icon,所以并不会显示小图标,大家可以自己下载图片到本地,把图片的绝对路径赋给icon就可以
效果如下
还可以,嘻嘻
版权声明:本文为lakaduo原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。