Allow command line(s) without specifying the executable #10159

Open
opened 2026-01-31 02:14:01 +00:00 by claunia · 0 comments
Owner

Originally created by @rubinusp on GitHub (Aug 14, 2020).

Right now, the commandline setting of Profile is only for executable. It has been a trick to add command lines as arguments to the executable. But it adds higher complexity to the whole statement. For those profiles that have source, it is nice if commandline functions as the launching command lines without specifying the executable. It is a useful feature to automatically set up and open a docker environment in the terminal, or switching as admin.

Example
{
"guid": "{2c4de342-38b7-51cf-b940-2309a097f518}",
"hidden": false,
"name": "Ubuntu",
"source": "Windows.Terminal.Wsl",
"colorScheme": "UbuntuLegit",
"commandline": "sudo -s"
}

This will automatically launch the shell as the root user.

Originally created by @rubinusp on GitHub (Aug 14, 2020). Right now, the `commandline` setting of Profile is only for executable. It has been a trick to add command lines as arguments to the executable. But it adds higher complexity to the whole statement. For those profiles that have source, it is nice if `commandline` functions as the launching command lines without specifying the executable. It is a useful feature to automatically set up and open a docker environment in the terminal, or switching as admin. **Example** { "guid": "{2c4de342-38b7-51cf-b940-2309a097f518}", "hidden": false, "name": "Ubuntu", "source": "Windows.Terminal.Wsl", "colorScheme": "UbuntuLegit", "commandline": "sudo -s" } This will automatically launch the shell as the root user.
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 02:14:01 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10159