Open windows terminal and go to Settings
and Open JSON File
. You should add code below in object profiles.list
.
{
"guid": "{aeddef2b-82be-4f04-b8e9-de088df5d554}",
"hidden": false,
"name": "Git Bash",
"commandline": "\"%LOCALAPPDATA%\\Programs\\Git\\usr\\bin\\bash.exe\" -i -l", # Change to your git local installation
"icon": "%LOCALAPPDATA%\\Programs\\Git\\mingw64\\share\\git\\git-for-windows.ico", # Change to your git local installation
"startingDirectory": "%USERPROFILE%"
}
Example showing also how to set as default:
"profiles":
{
"defaults":
{
},
"list":
[
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false
},
{
"guid": "{aeddef2b-82be-4f04-b8e9-de088df5d554}",
"hidden": false,
"name": "Git Bash",
"commandline": "\"%LOCALAPPDATA%\\Programs\\Git\\usr\\bin\\bash.exe\" -i -l",
"icon": "%LOCALAPPDATA%\\Programs\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"startingDirectory": "%USERPROFILE%"
}
]
},
"defaultProfile": "{aeddef2b-82be-4f04-b8e9-de088df5d554}" # With this property you can set as default
...