Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure the default shell in msys2/mintty?

Tags:

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).

like image 392
HirofumiTamori Avatar asked Jun 14 '17 05:06

HirofumiTamori


People also ask

How to select default in MSYS2?

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.

What is mintty shell?

DESCRIPTION. Mintty is a terminal emulator for Cygwin with a native Windows user interface and minimalist design. Its terminal emulation is largely compatible with xterm, but it does not require an X server.

How do I run Msys shell?

Starting the Command Shell: This part of the lab will teach you how to start the MSYS command shell in Windows. Click on Start, drag to All Programs, drag to MinGW, drag to MSYS, and click on msys. (Or, double-click on the MSYS icon on the desktop, if tere is one.) What is the current directory?

Is MSYS2 a bash?

It consists of a command line terminal called mintty, bash, version control systems like git and subversion, tools like tar and awk and even build systems like autotools, all based on a modified version of Cygwin.


2 Answers

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.

like image 164
David Grayson Avatar answered Sep 23 '22 11:09

David Grayson


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
like image 21
torbenbn Avatar answered Sep 22 '22 11:09

torbenbn