I am a big fan of the WindowsTerminal though it does sometimes terminate unexpectedly. Indeed I like linux/WindowsSubsystemForLinux and use it in conjunction with linux/CygWin for a lot of things. Here are a few shell related things. I put it in this (shell) wiki since its usage is naturally very tied to shells.

Copy and Paste

By default, WindowsTermainl passes C-c through to the shell, but C-v is bound to paste. Copy is bound to C-S-c, and C-S-v also works for paste. To allow C-v to be sent to the terminal (since C-v <key> is used for inserting literal control codes,

From an answer at https://github.com/microsoft/terminal/issues/5641 the solution lines in settings.json: find "keybindings" and comment out the two entries there.

        // { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" },
        // { "command": "paste", "keys": "ctrl+v" },
(I do like how WindowsTerminal responds to config changes as soon as the file is saved, rather than requiring a restart.)


I mostly commonly use WindowsTerminal with CygWin, and sometimes with linux/WindowsSubsystemForLinux -- I have CygWin as default, and this is accomplished by sticking the following into your settings.json.

In settings.json

    "defaultProfile": "{7fdf80a0-152a-452b-822c-c829775f46a7}",
            // Put settings here that you want to apply to all profiles.
                "closeOnExit" : true,
                "commandline" : "C:/cygwin64/bin/bash.exe --login -i",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Fira Code",
                "fontSize" : 12,
                "guid" : "{7fdf80a0-152a-452b-822c-c829775f46a7}",
                "historySize" : 9001,
                "icon" : "C:/cygwin64/Cygwin-Terminal.ico",
                "name" : "Cygwin",
                "padding" : "0, 0, 0, 0"


Alas linux/TmuxMultiplexer does not work with WindowsTerminal, indeed it pretty much only works with CygWin's mintty, which does some sleight of hand in order to make it work. So if you want to use tmux, you need to do so inside of the mintty that comes with CygWin.