Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Bash in Windows Terminal is opening in a separate window

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:

enter image description here

What am I missing?

like image 783
Roy Avatar asked May 23 '20 07:05

Roy


People also ask

How do I change where Git bash is open?

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.

How do I open Git bash in Windows command line?

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.

How do I open multiple Git bash Windows?

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.


1 Answers

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)

like image 187
Roy Avatar answered Sep 21 '22 18:09

Roy