Reputation: 1145
I updated msys2 recently and found mintty always shows 'Shells (bash)' dialog before it invokes.
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
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
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
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