Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: msys2-installer install a WindowsTerminal Profile Fragment #31

Open
alanlivio opened this issue Aug 18, 2021 · 3 comments

Comments

@alanlivio
Copy link

Conext

I use mys2 inside the WindowsTerminal. To do that I add the following profile in the settings.json.

            {
                "commandline": "C:\\msys64\\msys2_shell.cmd -defterm -mingw64 -no-start -use-full-path -here",
                "guid": "{2c4de342-38b7-51cf-b940-2309a097f519}",
                "hidden": false,
                "icon": "C:\\msys64\\msys2.ico",
                "name": "msys2",
                "startingDirectory": "%USERPROFILE%"
            }

I also use, for different contexts, the bash bundled with from Git For Windows.
The Git For Windows Installer has the option to install a WindowsTerminal default profile in Windows Terminal.

See below the installer option and then the json code added to the profile.

image

            {
                "guid": "{2ece5bfe-50ed-5f3a-ab87-5cd4baafed2b}",
                "hidden": false,
                "name": "Git Bash",
                "source": "Git",
                "startingDirectory": "%USERPROFILE%"
            },

In the WindowsTerminal, such profile installation is called Profile Fragments. The commit that creates such feature in Git For Windows is this one.

Feature request

That all said. I think it is interesting if the msys2-installer also install a profile for WindowsTerminal.

@alanlivio
Copy link
Author

It is currently supported. Thanks.

> winget search msys2
Name            Id                               Version  Source
-----------------------------------------------------------------
MSYS2           msys2.msys2                      20211130 winget
Ruby with MSYS2 RubyInstallerTeam.RubyWithDevKit 3.1.0-1  winget

@alanlivio
Copy link
Author

You are right @MehdiChinoune.

@alanlivio alanlivio reopened this Jan 10, 2022
@alanlivio alanlivio changed the title feature request: msys2-installer install a WindowsTerminal Profile feature request: msys2-installer install a WindowsTerminal Profile Fragment Feb 21, 2022
@alanlivio
Copy link
Author

I found in MSys documentation this guide to add a profile: https://www.msys2.org/docs/terminals/
Just to complement it will be interesting to have it installed together with Msys as a WindowsTerminal Profile Fragment: https://docs.microsoft.com/en-us/windows/terminal/json-fragment-extensions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant