Thursday, 11 June 2020

New Windows Terminal

Windows have recently introduced a new tabbed terminal which allows different terminal types to be used within one main window.  This is a huge improvement over having a number of cmd prompts open or even using Console2.

To make the new terminal even better you can also add in other terminals that you want to open as a tab.  Using this functionality with Git Bash is a good way to go.

Add Git Bash

Open the terminal and click the down arrow in the menu bar.  Choose Settings.  Notepad should open and the settings can now just be edited there.  To add Git Bash as an option edit the settings and simply add the Git Bash settings as below

  {
      // Make changes here to the gitbash profile.
      "guid": "{00000000-0000-0000-0000-000000000001}",
      "name": "Git Bash",
      "commandline": "C:\\Program Files\\Git\\bin\\bash.exe -i -l",
      "hidden": false,
      "icon" : "C:\\Program Files\\Git\\mingw64\\share\\git\\git-for-windows.ico",
      "startingDirectory" : "%USERPROFILE%"
  },

If you want to make Git Bash the default then you just change the defaultValue setting towards the top of the file

    "defaultProfile": "{00000000-0000-0000-0000-000000000001}",

Save the changes and Terminal will automatically update and Git Bash will be available.

No comments:

Post a comment