From b7def42e6bbb56378de2b5bea440c4cbafaaa525 Mon Sep 17 00:00:00 2001 From: Eliott Takvorian Date: Fri, 3 Oct 2025 17:58:53 +0200 Subject: [PATCH 1/2] Update terminals.md to document the GUI of the settings of the Windows Terminal --- web/docs/terminals.md | 59 +++++-------------------------------------- 1 file changed, 6 insertions(+), 53 deletions(-) diff --git a/web/docs/terminals.md b/web/docs/terminals.md index 78d14bf6..31dda668 100644 --- a/web/docs/terminals.md +++ b/web/docs/terminals.md @@ -32,64 +32,17 @@ and WSL can also be extended to support a MSYS2 shell. * Get it via the [Windows app store](https://aka.ms/terminal) if you don't have it installed already. -* In the tab dropdown menu select "Settings" which opens a code editor showing - a JSON configuration file. -* Insert the example profiles shown below under the `profiles` key. Note that +* In the tab dropdown menu select "Settings" which opens a settings page +* In the left sidebar, click on "+ Add a new profile" under "Profiles". Note that the examples assume that you have MSYS2 installed under `C:\msys64`. -* You can make one of the MSYS2 profiles the default by setting the `defaultProfile` - key to the `guid` value of one of the profile entries. +* In the opened page, click on "+ New empty profile". +* Under Name, enter "MSYS" (or the name you want) +* Under Command line, enter `C:/msys64/msys2_shell.cmd -defterm -no-start -[term]`. Replace `[term]` by the terminal you want you use, such as `msys`, `ucrt64`, etc. +* Click on "Save changes". For more info on the different profile settings see https://docs.microsoft.com/en-us/windows/terminal/customize-settings/profile-settings
-```json -// This makes UCRT64 the default shell -"defaultProfile": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}", -"profiles": { - "list": - [ - // ... - { - "guid": "{17da3cac-b318-431e-8a3e-7fcdefe6d114}", - "name": "UCRT64 / MSYS2", - "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64", - "startingDirectory": "C:/msys64/home/%USERNAME%", - "icon": "C:/msys64/ucrt64.ico", - "font": - { - "face": "Lucida Console", - "size": 9 - } - }, - { - "guid": "{71160544-14d8-4194-af25-d05feeac7233}", - "name": "MSYS / MSYS2", - "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -msys", - "startingDirectory": "C:/msys64/home/%USERNAME%", - "icon": "C:/msys64/msys2.ico", - "font": - { - "face": "Lucida Console", - "size": 9 - } - }, - // ... - ] -} -``` - -* The `commandline` in that profile will launch bash shell by default. To change - default login shell, install the corresponding package for that shell and append - `-shell` option with the command line. For example, - - To set `fish` shell as default: - ``` - "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64 -shell fish" - ``` - - To set `zsh` shell as default: - ``` - "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64 -shell zsh" - ``` - ## Konsole ![image](konsole.png){: align=right width=45% } From c21df46e908adf0e1f935e2737702bdea5231f61 Mon Sep 17 00:00:00 2001 From: Eliott Takvorian Date: Sat, 4 Oct 2025 08:49:56 +0200 Subject: [PATCH 2/2] As said @Biswa96, I replaced "term" and "terminal" by "shell". In https://github.com/msys2/msys2.github.io/pull/404/files/b7def42e6bbb56378de2b5bea440c4cbafaaa525#r2402821563, @Biswa96 said it: > In this step, "term" and "terminal" should be replaced with "shell" or something similar. terminals are mintty, windows terminal etc. So I did it. --- web/docs/terminals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/docs/terminals.md b/web/docs/terminals.md index 31dda668..a551a072 100644 --- a/web/docs/terminals.md +++ b/web/docs/terminals.md @@ -37,7 +37,7 @@ and WSL can also be extended to support a MSYS2 shell. the examples assume that you have MSYS2 installed under `C:\msys64`. * In the opened page, click on "+ New empty profile". * Under Name, enter "MSYS" (or the name you want) -* Under Command line, enter `C:/msys64/msys2_shell.cmd -defterm -no-start -[term]`. Replace `[term]` by the terminal you want you use, such as `msys`, `ucrt64`, etc. +* Under Command line, enter `C:/msys64/msys2_shell.cmd -defterm -no-start -[shell]`. Replace `[shell]` by the shell you want you use, such as `msys`, `ucrt64`, etc. * Click on "Save changes". For more info on the different profile settings see