Following on from my previous post about WSL Shortcuts - Windows Terminal v0.9 Release finally introduces command line support.

You can now combine this with an old File Explorer task bar trick to bootstrap your awesomeness.

Windows Files Explorer & Windows Terminal

All of command line parameters that are supported are documented here. One nice trick is using split-pane to support different platforms simultaneously. So the following will open up a pane with both Powershell and Ubuntu side-by-side :)

wt split-pane -p Ubuntu

In the below video, my default command line is Powershell. I’m then executing both a Windows batch file and a Bash script simultaneously - both are downloading images to the same folder.

Windows Terminal Starting Folder

As a side note, the default starting folder for each command line can be set in by the startingDirectory property for both environments in the profiles.json file eg:

{
    "acrylicOpacity" : 0.75,
    "closeOnExit" : true,
    "colorScheme" : "Campbell",
    "commandline" : "cmd.exe",
    "cursorColor" : "#FFFFFF",
    "cursorShape" : "bar",
    "fontFace" : "Consolas",
    "fontSize" : 10,
    "guid" : "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
    "historySize" : 9001,
    "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
    "name" : "cmd",
    "padding" : "0, 0, 0, 0",
    "snapOnInput" : true,
    "startingDirectory" : "c://Github",
    "useAcrylic" : true
},
{
    "acrylicOpacity" : 0.5,
    "closeOnExit" : true,
    "colorScheme" : "Campbell",
    "commandline" : "wsl.exe -d Ubuntu",
    "cursorColor" : "#FFFFFF",
    "cursorShape" : "bar",
    "fontFace" : "Consolas",
    "fontSize" : 10,
    "guid" : "{2c4de342-38b7-51cf-b940-2309a097f518}",
    "historySize" : 9001,
    "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
    "name" : "Ubuntu",
    "padding" : "0, 0, 0, 0",
    "snapOnInput" : true,
    "useAcrylic" : false,
    "startingDirectory" : "c://Github",
},