I want to add git bash to the windows terminal, however, when I add a new git bash tab in the terminal the git bash opens in a different window.
Here's my configuration:
{
"guid": "{--------------------}",
"acrylicOpacity" : 0.75,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "C:\\Users\\anonymous\\AppData\\Local\\Programs\\Git\\git-bash.exe",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"historySize" : 9001,
"icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
"name" : "Git Bash",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"useAcrylic" : true
}
Output:
What am I missing?
Click the start menu, start typing “Environment” and then select “Edit environment variables for user account”. Under user variables click New and then set the name of the variable to be HOME and the value to be whatever folder path you want to be your new default. Save it, and close Git Bash if it's open.
Open the Start menu by clicking on the Windows icon and typing “Git Bash” into the search bar. The icon for Git Bash and the words “Git Bash Desktop App” will appear. Click on the icon or the words “Git Bash Desktop App” to open Git Bash.
You can use multiple GIT Bash tabs inside VSCode, if you use it as IDE. Press CTRL + SHIFT + ' to open the terminal. You will se a dropdown to the right where you can select bash as default shell if you have GIT Bash installed. You can then use multiple tabs within VSCode.
I don't know if that's the correct solution, but I tried changing it to open the sh.exe
in the bin folder, with the argument --login
and it works now.
EDIT
As mentioned in the comments, bash.exe
can also work. (Anything in the bin
folder)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With