Adding Cygwin to Windows Terminal (Preview)

I'm liking the Windows Terminal preview more and more, especially now that it doesn't crash every time I close it without exiting PowerShell explicitly. Despite the advancements in WSL, I'm still more likely to use Cygwin when I want to run *NIX utilities on Windows.

I'm liking the Windows Terminal preview more and more, especially now that it doesn't crash every time I close it without exiting PowerShell explicitly. Despite the advancements in WSL, I'm still more likely to use Cygwin when I want to run *NIX utilities on Windows. I wanted to add a Cygwin profile and this is how I did it.

  1. Open Windows Terminal
  2. Open Settings by Pressing CTRL+, which will open a JSON file in your default text editor.
  3. Go to the Profiles section, and create a new section and add your details. If you haven't changed your Cygwin path from the default install, the following should work for you if you're running the 64bit version.  

    This also assumes you've added the Cygwin bin directory to your System or User %PATH%. If not, change the "commandline" setting to "C:/cygwin64/bin/bash.exe."

    You can generate your own GUID by doing New-GUID in PowerShell.
    {
        "acrylicOpacity" : 0.75,
        "closeOnExit" : true,
        "colorScheme" : "Campbell",
        "commandline" : "bash.exe",
        "cursorColor" : "#FFFFFF",
        "cursorShape" : "bar",
        "fontFace" : "Input",
        "fontSize" : 12,
        "guid" : "{07ece1cb-ff14-4179-a738-1781081fd8be}",
        "historySize" : 9001,
        "icon" : "C:/cygwin64/Cygwin-Terminal.ico",
        "name" : "Cygwin",
        "padding" : "0, 0, 0, 0",
        "snapOnInput" : true,
        "useAcrylic" : true
    }