msys2 / MSYS2-packages

Package scripts for MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
1.3k stars 490 forks source link

Add a flag to `msys2_shell.cmd` for disabling login #2891

Open mon-jai opened 2 years ago

mon-jai commented 2 years ago

Describe the issue

As per #2882, it takes about 3-4 seconds to stratup msys2 bash with msys2_shell.cmd.

"C:/msys64/msys2_shell.cmd" -defterm -here -no-start -msys

But non-login bash starts up almost immediately.

cmd /k set MSYSTEM=MSYS&& set PATH=C:/msys64/usr/bin;%PATH%&& bash

Allowing disabling login will speed up msys2 launch for some cases where login isn't necessary.

goyalyashpal commented 1 year ago

hey @mon-jai is this issue still relevant?

(thinking that now the installer is using the .exe launchers instead of these scripts)