TechBuzzPro

Set Default Profile Windows Terminal

· 5 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can set a default profile in Windows Terminal on Windows 11 by editing the settings JSON file or using the GUI settings editor. This determines which shell (like Command Prompt, PowerShell, or WSL) opens automatically when you launch the app. This guide walks you through the process using the built-in settings, ensuring your preferred terminal environment starts every time.

What You'll Need

  • Windows 11 (any edition with Windows Terminal installed)
  • Windows Terminal app (preinstalled on most Windows 11 systems)
  • Administrative access (only if modifying system-level defaults or installing new shells)
  • A working shell profile already configured in Windows Terminal (e.g., PowerShell, Command Prompt, Ubuntu, etc.)

Step-by-Step

  1. Open Windows Terminal. Click the down arrow next to the tab bar or press Ctrl+Shift+P to open the command palette.
  2. In the command palette, type Settings and select Settings from the list. This opens the JSON-based settings interface in a new tab.
  3. In the settings window, locate the left sidebar and ensure Startup is selected. This section controls what happens when Windows Terminal launches.
  4. Under the Startup section, find the option labeled Default profile. Click the dropdown menu next to it.
  5. From the dropdown, select the profile you want to use by default. Options typically include Windows PowerShell, Command Prompt, Ubuntu (if WSL is installed), or any custom profile you've added.
  6. Once selected, close the settings tab. Windows Terminal automatically saves changes—no manual save is required.
  7. To test, close all terminal windows and reopen Windows Terminal. The shell you selected should now open by default.
  8. (Optional) If you prefer editing the JSON directly: in the settings tab, click Open JSON file in the bottom left. Look for the "defaultProfile" field under the "startup" object. Assign it the GUID of your desired profile, which you can find in the "profiles" list under "list". Example: "defaultProfile" : "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}".
  9. Save the JSON file if edited manually. Reopen Windows Terminal to confirm the change.
  10. (Optional) To set a default profile for new tabs only, go back to Settings > Startup and adjust the Default profile for new tabs setting separately.

Common Mistakes

  • Confusing default profile with default command line: The "Command line" field in a profile’s settings overrides the default shell. If set, it forces a specific executable regardless of the default profile choice. Check this field is empty or correct in your profile settings.
  • Editing the wrong JSON section: Misplacing the "defaultProfile" key outside the "startup" object will break settings. Always ensure it’s nested correctly.
  • Using profile name instead of GUID in JSON: In the JSON file, the "defaultProfile" value must be the profile’s GUID, not its name. Use the GUI to avoid this error.
  • Not restarting the app after changes: Some changes may not apply until Windows Terminal is fully closed and reopened, not just a tab closed.
  • Assuming the dropdown shows friendly names only: The GUI dropdown uses display names, but the JSON uses GUIDs. Never copy the name into the JSON field.

Tips

  • Use the GUI when possible: The settings interface prevents syntax errors and handles GUIDs automatically, making it safer than manual JSON editing.
  • Set different defaults for startup vs. new tabs: You can have PowerShell open on startup but Command Prompt for new tabs—useful for specific workflows.
  • Rename profiles for clarity: In the settings editor, edit a profile’s Profile name field to something descriptive like "Admin PowerShell" or "WSL Debian" for easier selection.
  • Pin your preferred profile to the taskbar: Right-click a profile in the dropdown menu and select Pin to taskbar for one-click access.
  • Check for updates: Windows Terminal updates via the Microsoft Store. Ensure you’re on the latest version to avoid bugs in settings behavior.

Troubleshooting

If the default profile doesn’t change:

  1. Close all Windows Terminal instances completely, then reopen. Background processes can retain old settings.
  2. Verify the Default profile dropdown in Settings > Startup shows your chosen shell. Re-select it if needed.
  3. Check the profile’s Command line field. If it’s set to a specific executable (e.g., cmd.exe), it may override the default. Clear or correct this field.
  4. If editing JSON, validate the syntax using a JSON linter. A single missing comma or bracket can prevent loading.
  5. Reset settings by renaming the settings.json file (located in %LOCALAPPDATA%\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState) to settings.json.bak, then restart Windows Terminal to generate a fresh one.
  6. Reinstall Windows Terminal from the Microsoft Store if settings fail to apply consistently.
  7. Ensure your user account has write permissions to the LocalState folder. Lack of permissions can prevent saving changes.

Frequently Asked Questions

Can I set WSL as the default profile?

Yes. If you have a Linux distribution installed via WSL, it appears in the profile list. Select it as the default in Settings > Startup.

Why does Command Prompt still open even after I changed the default?

This often happens if the profile’s "Command line" field is set to cmd.exe. Check the profile settings and clear or correct this field.

Can I set a custom command to run on startup?

Yes. In the profile’s settings, use the "Command line" field to specify a script or command. For example, pwsh -Command Start-SshAgent runs a command when PowerShell starts.

Does this work with third-party shells like Git Bash?

Yes, if Git Bash is added as a profile in Windows Terminal. Once added, it appears in the default profile dropdown and can be selected.

What if my default profile is missing from the list?

Ensure the shell is properly installed and detected. For custom shells, manually add a new profile in Settings > Profiles with the correct executable path.

Can I set different defaults for different user accounts?

Yes. Each Windows user has their own settings.json file. Changes apply per user, so defaults can vary between accounts on the same machine.