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 (6) -

  • 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
            },

  • 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

Add comment

Loading