HirofumiTamori
HirofumiTamori

Reputation: 1145

How to configure the default shell in msys2/mintty?

I updated msys2 recently and found mintty always shows 'Shells (bash)' dialog before it invokes.

Shells (bash) dialog

It's little bit annoying to click the button every time, how can I suppress this dialog with fixing the default shell? Mintty version is mintty 2.7.7 (x86_64-pc-msys).

Upvotes: 6

Views: 3708

Answers (3)

Ivellios
Ivellios

Reputation: 100

Try this one: D:\msys64\usr\bin\bash.exe -c 'MSYSTEM=MSYS exec /bin/fish -l -i'

The 'MSYSTEM' variable could be MSYS, MINGW32, MING64. And the command can be integrated to terminal emulator like consolez, cmder. mintty.exe won't allow you do that since it's not console application.

Upvotes: 1

torbenbn
torbenbn

Reputation: 41

I tried installing msys2-launcher, but could not find the package.

Instead, I updated the Target field in my Windows shortcut to point to the msys2 bash directly:

C:\msys64\usr\bin\mintty.exe /usr/bin/bash

Upvotes: 3

David Grayson
David Grayson

Reputation: 87486

Try installing the msys2-launcher package with pacman -S msys2-launcher. Then you should have three executables in the MSYS2 installation directory, and you should run the shell using those executables. You can then pin the shell to your Windows taskbar for future launching.

Upvotes: 5

Related Questions