Site icon WindowsLoop

How to Change Default Shell in Windows Terminal

In Windows Terminal, you can change the default shell it opens with. Follow these steps to change Windows Terminal default shell from PowerShell to anything you want.

By default, PowerShell is the default shell in Windows Terminal. That is, when you open the Windows Terminal, the first thing you see is PowerShell. When needed, you can choose another console from the dropdown menu. This is great. However, if you are not a PowerShell user, you can change the default console to anything you want. For instance, if you are a web developer who heavily uses a Linux shell, you can set it as the default console in Windows Terminal.

This is pretty helpful because you don’t have to switch or open a new console tab every time you open Windows Terminal.

I assume you have already added your favorite console to the Windows Terminal. For example, if you want to set Ubuntu as the default, you should first add Ubuntu shell to Windows Terminal.

Change default shell in Windows Terminal

The new Settings page in the Windows Terminal makes it a breeze to change default startup shell.

Follow these steps to change default shell in Windows Terminal.

  1. Open Windows Terminal.
  2. Click on the dropdown menu on the title bar.
  3. Select the “Settings” option.
  4. Select “Startup” on the sidebar.
  5. Choose a shell from the “Default profile” dropdown menu.
  6. Click “Save.”

With that, you have changed the default profile or shell in Windows Terminal. For example, I changed the default shell from PowerShell to Ubuntu.

Use setting.json file to change default shell

To set a default console, we can use the GUID (Globally Unique Identifier). Since GUID is a unique string, Windows Terminal can differentiate the console you target from other consoles and open it by default.

1. First, open Windows Terminal by searching for it in the start menu.

2. After opening the Terminal, click on the drop-down menu and select “Settings.”

3. Now, click on the “Open JSON file” option on the sidebar.

4. This action will open the “settings.json” file in the default text or code editor. Once opened, scroll down till you find the Profiles array.

4. In there, find the console profile you want to set as the default and copy the GUID value. For example, I want to set Ubuntu as the default terminal. So, I copied the “guid” value of the Ubuntu profile.

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

6. Save the file and close it.

7. Relaunch Windows Terminal and you should see the new default console.

That is it. It is that simple to change the default terminal in Windows Terminal.

If you are stuck or need some help, comment below and I will try to help as much as possible.

Exit mobile version