Skip to content

Instantly share code, notes, and snippets.

@elieux
Last active December 26, 2021 23:36
Show Gist options
  • Save elieux/dd6d0c15cc0ae503f830 to your computer and use it in GitHub Desktop.
Save elieux/dd6d0c15cc0ae503f830 to your computer and use it in GitHub Desktop.
MSYS2 start scripts
@echo off
set MSYSTEM=MINGW32
"%~dp0msys2.cmd" %*
set MSYSTEM=
@echo off
set MSYSTEM=MINGW64
"%~dp0msys2.cmd" %*
set MSYSTEM=
@echo off
setlocal
set PATH=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem
set MSYSROOT=D:\msys64
if "%MSYSTEM%"=="" (
set MSYSTEM=MSYS
)
if "%1"=="" (
set CMD=-i
) else (
set CMD=-c "%*"
)
rem set MSYS=winsymlinks:nativestrict
rem set MSYS=error_start:%MSYSROOT%\mingw64\bin\qtcreator.exe^|-debug^|^<process-id^>
set CHERE_INVOKING=1
start "" "%MSYSROOT%\usr\bin\mintty" -i /msys2.ico -e /usr/bin/bash --login %CMD%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment