In Windows Terminal, you can change the default console that it opens with. Follow these steps to change Windows Terminal default console from PowerShell to anything you want.
By default, PowerShell is the default console in Windows Terminal. When needed, you can choose another console from the drop-down menu and add it a tab. This is great. However, you can also change the default console to anything you want. For instance, if you are a web developer who heavily uses Ubuntu, 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.
It is pretty easy to do. Let me show you how.
I assume you've already added your favorite console to the Windows Terminal. For example, if you want to set Ubuntu as the default, then you should first need to add Ubuntu to Windows Terminal.
Change Default Console in Windows Terminal
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 are targeting 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. This action will open the profiles.json file in the default text or code editor. Here, 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 all the way to the top, 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.