Windows Terminal配置Git Bash
- 打開Windows Terminal配置文件profiles.json;
- 在"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 }