Search code examples
windowsbashterminalcygwinmintty

How do configure Windows terminal to launch Cygwin (mintty) bash?


I'm trying to set Windows Terminal to launch mintty.exe with the setting bellow. However, when opening a new bash session, it opens mintty in a new window and not inside a Windows Terminal tab.

    {
        "guid": "{3C0F968A-D8F8-437A-A41C-439293E22EBB}",
        "hidden": false,
        "name": "Mintty",
        "commandline": "C:\\cygwin64\\bin\\mintty.exe -i /Cygwin-Terminal.ico -",
        "icon": "C:\\cygwin64\\Cygwin-Terminal.ico"
    }

Solution

  • After some research, I have found an explanation about the different between Cygwin bash.exe and mintty.exe . I used the following setting to resolve the issue.

    {
        "guid": "{3C0F968A-D8F8-437A-A41C-439293E22EB1}",
        "hidden": false,
        "name": "Bash",
        "commandline": "C:\\cygwin64\\bin\\bash.exe -l",
        "icon": "C:\\cygwin64\\Cygwin-Terminal.ico"
    }