How to add profiles to the new Windows Terminal

In a previous post I showed how I got the new Windows Terminal building. In this post I will show you how to add additional profiles to the new Windows Terminal.

Start the terminal and press Ctrl+T if the tabs are not showing. With the tabs showing using the dropdown menu select “Settings”.

clip_image002

This will open a JSON file in your default editor. In my case that is VS Code. Using VS Code I formatted the file so I could edit the sections.

clip_image004

Copy the PowerShell profile and paste it above the cmd profile. Now just update the guid, name and commandline.

To add Git Bash we are going to need a new GUID. You can visit http://new-guid.com/ and just copy and paste it into the new profile. Set the name to “Git Bash”. Set the commandline to "C:\\Program Files\\Git\\bin\\bash.exe". Now save the file. You can now select “Git Bash” from the menu.

clip_image006

To add Bash on Ubuntu (on Windows) repeat the steps above and set the commandline to “C:\\Windows\\System32\\bash.exe”

clip_image008

Comments (11) -

  • Bartholomew

    6/27/2019 3:11:40 AM | Reply

    Thanks, added an the git icon as well:
            {
                "acrylicOpacity" : 0.75,
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "commandline" : "C:/Program Files/Git/usr/bin/bash.exe --login",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Consolas",
                "fontSize" : 10,
                "guid" : "{14ad203f-52cc-4110-90d6-d96e0f41b64d}",
                "historySize" : 9001,
                "icon" : "C:/Program Files/Git/mingw64/share/git/git-for-windows.ico",
                "name" : "Git Bash",
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : true
            },

    • Nur

      7/27/2020 9:52:25 PM | Reply

      Thank you. I was looking for how to change the starting directory to the usual one and also adding an icon. This worked perfectly for me.

  • Gray

    6/30/2019 11:28:51 AM | Reply

    Donovan,  Good article about getting this up and going.  How is your Git Bash working.  I tried adding it, but it is opening up in a new window still :-(  Could I see a copy of your config section for that?

    • Donovan

      7/14/2019 6:16:22 PM | Reply

      Sorry for the delay. I rebuilt my machine because 1903 was not playing nice on my laptop so I don't have the files anymore.

    • RZKY

      8/27/2019 7:25:23 AM | Reply

      @Gray you're probably calling the git-bash.exe program instead of the bash.exe

      This will open a new window:
      "commandline" : "C:/Program Files/Git/git-bash.exe"

      This will open a tab inside windows terminal:
      "commandline" : "C:/Program Files/Git/bin/bash.exe"

  • Varun Anil Gupta

    7/27/2019 12:19:56 PM | Reply

    Hi, any idea how to add cygwin to windows terminal. I tried settings but it spawns a new window instead. How to open in current window itself.

    • PW

      8/13/2019 2:58:50 PM | Reply

      change the exe to ....\git\bin\bash.exe

    • Will

      9/16/2019 9:19:11 PM | Reply

      I got Cygwin working with this setup:
              {
                  "acrylicOpacity" : 0.5,
                  "background" : "#012456",
                  "closeOnExit" : true,
                  "colorScheme" : "Campbell",
                  "commandline" : "C:\\cygwin64\\bin\\bash.exe --login",
                  "cursorColor" : "#FFFFFF",
                  "cursorShape" : "bar",
                  "fontFace" : "Ubuntu Mono",
                  "fontSize" : 10,
                  "guid" : "{<enter your guid here>}",
                  "historySize" : 9001,
                  "icon" : "C:\\cygwin64\\Cygwin-Terminal.ico",
                  "name" : "Cygwin",
                  "padding" : "0, 0, 0, 0",
                  "snapOnInput" : true,
                  "startingDirectory" : "%HOMEDRIVE%%HOMEPATH%",
                  "useAcrylic" : true
              }

    • Matevz

      9/20/2019 12:17:41 PM | Reply

      This works for my CygWin - instead of mintty use bash.exe:
              {
                  "acrylicOpacity" : 0.5,
                  "closeOnExit" : true,
                  "colorScheme" : "Campbell",
                  "commandline" : "C:\\cygwin64\\bin\\bash.exe",
                  "cursorColor" : "#FFFFFF",
                  "cursorShape" : "bar",
                  "fontFace" : "Consolas",
                  "fontSize" : 10,
                  "guid" : "{2ba8189b-dc7d-436b-b2ad-a29fecd43b8c}",
                  "historySize" : 9001,
                  "icon" : "ms-appx:///C:/cygwin64/Cygwin-Terminal.ico",
                  "name" : "CygWin",
                  "padding" : "0, 0, 0, 0",
                  "snapOnInput" : true,
                  "useAcrylic" : true
              }

  • Martin

    1/10/2020 9:35:47 AM | Reply

    How to open cygwin's mintty correctly? If the commandline refers to mintty.exe, a new window is opened instead of a new tab. @Matevz showed that it works properly with cygwin's bash, but I'd prefer cygwin's mintty.

    • Terminaluser

      2/10/2020 3:59:40 PM | Reply

      Mintty is a terminal application. You can't run a terminal application inside of another. You either use Windows Terminal or you use Mintty. Mintty has features that Windows Terminal does not, but it's also vice versa. It's all about preference. Windows Terminal is preferable however due to official support and has come a long way.

Add comment

Loading