1.在微软应用商店下载 windows terminal
1.打开 Windows Terminnal 的设置界面,点击添加新配置文件添加配置如下
即在json配置文件中添加:
{
"commandline": "D:\\***\\Git\\bin\\bash.exe --login -i",
"guid": "{562a69d8-550e-4475-ad4e-d5bccdb078c2}",
"hidden": false,
"icon": "D:\\***\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"name": "Git Bash",
"startingDirectory": "D:\\***"
}