Multiple WSLs & Theme #6204

Closed
opened 2026-01-31 00:32:15 +00:00 by claunia · 6 comments
Owner

Originally created by @ghost on GitHub (Jan 29, 2020).

Environment

Windows 10 Pro 1909 18363.592

Any other software?

Steps to reproduce

Use the attached profiles.json

Expected behavior

Multiple WSLs should be in the dropdown. It works for CMD. The idea is to have different WSLs for when I need to access QA / Prod, to use the theme to differentiate where I'm logged into.

Actual behavior

Only one WSL in the dropdown. It works for CMD, although the second cmd is missing it's icon.

Originally created by @ghost on GitHub (Jan 29, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment Windows 10 Pro 1909 18363.592 Any other software? # Steps to reproduce Use the attached profiles.json # Expected behavior Multiple WSLs should be in the dropdown. It works for CMD. The idea is to have different WSLs for when I need to access QA / Prod, to use the theme to differentiate where I'm logged into. # Actual behavior Only one WSL in the dropdown. It works for CMD, although the second cmd is missing it's icon.
claunia added the Issue-QuestionArea-SettingsResolution-AnsweredProduct-Terminal labels 2026-01-31 00:32:16 +00:00
Author
Owner

@ghost commented on GitHub (Jan 29, 2020):

// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation

{
  "$schema": "https://aka.ms/terminal-profiles-schema",

  "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}",

  "profiles": [

    {
      "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
      "name": "cmd",
      "commandline": "cmd.exe",
      "hidden": false
    },
    {
      "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6102}",
      "name": "cmd",
      "commandline": "cmd.exe",
      "hidden": false,
      "colorScheme": "Solarized Dark"
    },
    {
      "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
      "hidden": false,
      "name": "Ubuntu",
      "source": "Windows.Terminal.Wsl",
      "colorScheme": "Solarized Light"
    },
    {
      "guid": "{2c4de342-38b7-51cf-b940-2309a097f519}",
      "hidden": false,
      "name": "Ubuntu Two",
      "source": "Windows.Terminal.Wsl",
      "colorScheme": "Solarized Dark"
    },
    {
      // Make changes here to the powershell.exe profile
      "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
      "name": "Windows PowerShell",
      "commandline": "powershell.exe",
      "hidden": false
    },
    {
      "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}",
      "hidden": false,
      "name": "Azure Cloud Shell",
      "source": "Windows.Terminal.Azure"
    }
  ],

  // Add custom color schemes to this array
  "schemes": [],

  // Add any keybinding overrides to this array.
  // To unbind a default keybinding, set the command to "unbound"
  "keybindings": []
}
@ghost commented on GitHub (Jan 29, 2020): ```jsonc // To view the default settings, hold "alt" while clicking on the "Settings" button. // For documentation on these settings, see: https://aka.ms/terminal-documentation { "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{2c4de342-38b7-51cf-b940-2309a097f518}", "profiles": [ { "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "hidden": false }, { "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6102}", "name": "cmd", "commandline": "cmd.exe", "hidden": false, "colorScheme": "Solarized Dark" }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": false, "name": "Ubuntu", "source": "Windows.Terminal.Wsl", "colorScheme": "Solarized Light" }, { "guid": "{2c4de342-38b7-51cf-b940-2309a097f519}", "hidden": false, "name": "Ubuntu Two", "source": "Windows.Terminal.Wsl", "colorScheme": "Solarized Dark" }, { // Make changes here to the powershell.exe profile "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" } ], // Add custom color schemes to this array "schemes": [], // Add any keybinding overrides to this array. // To unbind a default keybinding, set the command to "unbound" "keybindings": [] } ```
Author
Owner

@zadjii-msft commented on GitHub (Jan 29, 2020):

@DHowett-MSFT We've had this discussion before - should we put the commandline in dynamically generated profiles?

@zadjii-msft commented on GitHub (Jan 29, 2020): @DHowett-MSFT We've had this discussion before - should we put the `commandline` in dynamically generated profiles?
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 29, 2020):

If we put the commandline in, it'll be subject to the same rules that we run afoul of with the name in #4273. We could put it in a comment ... but it would not be easily discovered

@DHowett-MSFT commented on GitHub (Jan 29, 2020): If we put the commandline in, it'll be subject to the same rules that we run afoul of with the `name` in #4273. We could put it in a comment ... but it would not be easily discovered
Author
Owner

@ghost commented on GitHub (Jan 30, 2020):

Found out I can change bashrc so I can set QA servers to have a specific color prompt and Prod servers another, which basically solves what I was trying to achieve :)

@ghost commented on GitHub (Jan 30, 2020): Found out I can change bashrc so I can set QA servers to have a specific color prompt and Prod servers another, which basically solves what I was trying to achieve :)
Author
Owner

@DHowett-MSFT commented on GitHub (Jan 31, 2020):

Fair enough. Thanks for following up!

@DHowett-MSFT commented on GitHub (Jan 31, 2020): Fair enough. Thanks for following up!
Author
Owner

@inoue-katsumi commented on GitHub (Mar 23, 2020):

I think the workaround is to replace "source": "Windows.Terminal.Wsl", line with "commandline": "wsl.exe -d Ubuntu-18.04", .
I put a sample at https://github.com/inoue-katsumi/WSL/blob/master/profiles.json

@inoue-katsumi commented on GitHub (Mar 23, 2020): I think the workaround is to replace `"source": "Windows.Terminal.Wsl",` line with `"commandline": "wsl.exe -d Ubuntu-18.04",` . I put a sample at https://github.com/inoue-katsumi/WSL/blob/master/profiles.json
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6204