Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Terminals

Mintty

image

image

Mintty is the default terminal application in MSYS2and is included in the installer. We also include some custom Mintty integrationby providing separate launchers with corresponding .ini configuration files(msys2{.exe,.ini}/ucrt64{.exe,.ini}/...) for all the MSYS2environments, so you can easily configure your environments and pin thelaunchers to your Windows taskbar.

Seehttps://github.com/msys2/msys2-launcher andhttps://mintty.github.io formore details.

Windows Terminal

image

The new Windows Terminal application, which by default supports cmd, powershelland WSL can also be extended to support a MSYS2 shell.

  • Get it via theWindows app store 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 theprofiles key. Note that the examples assume that you have MSYS2 installed underC:\msys64.
  • You can make one of the MSYS2 profiles the default by setting thedefaultProfile key to theguid value of one of the profile entries.

For more info on the different profile settings seehttps://docs.microsoft.com/en-us/windows/terminal/customize-settings/profile-settings

// 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}},// ...]}
  • Thecommandline 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 setfish shell as default:
    "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64 -shell fish"
  • To setzsh shell as default:
    "commandline": "C:/msys64/msys2_shell.cmd -defterm -here -no-start -ucrt64 -shell zsh"

Konsole

image

Konsole is a powerful and customizable terminalemulator made by KDE. MSYS2 provides it as amingw package.To use it with MSYS2, first install the appropriate package and create a newprofile with the following steps.

  • In the Konsole window menu bar, select "Settings" > "Create New Profile...".
  • Select it as a default profile to always open msys2 environment at start.
  • Add profile name and following command.
C:\\msys64\\msys2_shell.cmd -defterm -here -no-start -ucrt64
  • Now close and restart Konsole.

Cmder

image

Cmder is a portable console emulator for Windows based onConEmu that aims to provide a portable and convenient terminal for Windows. It comes bundled with most of the popular UNIX commands and supports a quake-style slide drop down that allows immediate access to the terminal via a global keyboard shortcut.

To use it with MSYS2, click the hamburger menu on the right lower bar and clicksettings to open the settings window.

  1. Navigate toStartup >Tasks and then click the+ symbol to create a new task. You can set any name you like, for examplebash::msys2 ucrt64.

  2. In the command section, copy the following script:

set MSYSTEM=UCRT64 & set "CHERE_INVOKING=1" & "C:\msys64\usr\bin\bash.exe" --login -i
  1. ClickSave Settings button.

  2. Open a new tab with the shortcutCtrl + T. On the new console dialog, select thetask you just created and then click theStart button.

To customize further, you can pressCtrl + Alt + P to open the settings window and set the task you created as the default one. You can also click theStartup dir button to change the default startup directory.


[8]ページ先頭

©2009-2025 Movatter.jp