Home » How To » How to Change Default Shell in Windows Terminal

How To Change the Default Shell in Windows Terminal

Learn two simple methods to change the default shell in Windows Terminal.

By default, PowerShell is the default shell in Windows Terminal. That means, when you open the Terminal application, it opens with the PowerShell tab active. When needed, you can open other shells from the dropdown menu on the title bar. While PowerShell is what Microsoft recommends for Windows, you might prefer Windows Terminal to open with a different shell by default.

For example, you might want to use Command Prompt or WSL as the default shell. Or, you’ve created a custom shell in Terminal and want to use it as your primary. Whatever the reason is, it is pretty easy to change the default shell in Windows Terminal. You can either use the Terminal settings or manually edit the “settings.json” file. I will show you how to do it in this quick and simple guide. Let’s get started.

Good to read: How to add Ubuntu shell to Windows Terminal

Change the Default Shell Using Windows Terminal Settings

Most don’t know this, but the Terminal has a dedicated Settings tab that allows you to customize it however you want. One such customization is changing the default shell. Here’s how to do it:

  1. Right-click the “Windows” icon on the taskbar.
  2. Select the “Terminal” option.
  3. Click the dropdown icon on the title bar.
  4. Select the “Settings” option.
  5. Go to the “Startup” tab on the sidebar.
  6. Choose a shell/profile from the “Default profile” dropdown menu.
  7. Click “Save.”
  8. With that, you’ve changed the default shell in Terminal.

Note: On Windows 10, you can open Terminal by searching for it in the Start menu.

change default shell using terminal settings

Change the Default Shell in Terminal Using “settings.json” File

You can customize Windows Terminal using the “settings.json” file. All you have to do is find the GUID of the shell/profile you want to use as the default and add it to the “defaultProfile” variable. Here’s how to do it.

  1. Right-click the “Windows” icon on the taskbar.
  2. Select the “Terminal” option.
  3. Click the dropdown icon on the title bar.
  4. Select the “Settings” option.
  5. Click the “Open JSON file” option in the bottom left corner.
  6. Scroll down to the “Profiles” section.
  7. Find the shell you want to use and copy its “guid“.
  8. Scroll back to the top and find the “defaultProfile” entry.
  9. Replace the existing GUID with the one you copied.
  10. Press “Ctrl + S” to save the file.
  11. With that, you’ve changed the default profile in Windows Terminal.

Detailed Steps (With Screenshots)

First, open the Terminal. To do that, right-click on the “Windows” icon the taskbar or press “Windows key + X” and select the “Terminal” option. Once it opens, click the dropdown icon on the title bar and select the “Settings” option.

Change-default-console-windows-terminal-select-settings

In the “Settings” tab, click the “Open JSON file” option in the bottom left corner.

This action will open the “settings.json” file in your default text or code editor. Once opened, scroll down to the “profiles” entry and find the shell you want to use as the default. You can identify the shell using the “name” entry. Next, copy its “guid” string between the quotes.

For example, I want to set Ubuntu as the default terminal shell. So, I copied the “guid” value of the Ubuntu profile.

Change-default-console-windows-terminal-copy-guid

Now, scroll back to the top and replace the “defaultProfile” value with the copied GUID value.

Change-default-console-windows-terminal-paste-guid-in-defaultvalue

Finally, press “Ctrl + S” to save the file, then close it by clicking the “X” icon in the title bar.

That is all. With that, you’ve changed the default profile in Windows Terminal. From now on, when you open the Terminal, it opens the newly selected default shell/profile.

Change-default-console-windows-terminal-featured

That is all. It is that simple to select another shell to open as the default in Windows Terminal. If you have any questions or need help, comment below. I’ll be happy to assist.

7 thoughts on “How To Change the Default Shell in Windows Terminal”

  1. Avatar for Michal

    I would like to know if i can start Windows Terminal with more then 1 default tab. I tried to change that Settings notepad but no success. I can only choose one tab. I would like to run default Linux, Powershell and CMD tab there. Thank you

    1. Avatar for Bashkarla

      I don’t think you can set up multiple default tabs. For the most part, it’s not that useful, at least for me. Even when you set up multiple default tabs, you still need to click on the tab to go to the tab. Comparing that to the drop-down method, it’s just one less click.

  2. Avatar for marque

    Hai! How do you get the ASCII graphics and system information on step 7? The ubuntu logo is cool. Thanks.

    1. Avatar for Bashkarla

      I used a small tool called ScreenFetch. Just install the tool in Ubuntu and use the “screenfetch” command. It will show the system info with that cool ASCII art.

      Have a nice day.

  3. Avatar for Joseph

    Thanks this article helped me do exactly what I wanted to do: make Linux the default console that runs when the Windows Terminal is opened.

  4. Avatar for Arnold Schwarzenegger
    Arnold Schwarzenegger

    The term “console” refers to the window like conhost.exe. What you are using is called a “shell” like cmd or powershell.

Leave a Comment

Your email address will not be published. Required fields are marked *