Skip to content

Instantly share code, notes, and snippets.

@AeliusSaionji
Created June 2, 2017 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AeliusSaionji/fb27d07921423ae2e5bf663d28e3276c to your computer and use it in GitHub Desktop.
Save AeliusSaionji/fb27d07921423ae2e5bf663d28e3276c to your computer and use it in GitHub Desktop.
--- a/msys2_shell.cmd 2017-02-14 06:05:20.000000000 -0500
+++ b/msys2_shell.cmd 2017-06-01 20:47:50.936329100 -0400
@@ -76,7 +76,7 @@
if NOT EXIST "%WD%mintty.exe" goto startsh
set MSYSCON=mintty.exe
:startmintty
-start "%CONTITLE%" "%WD%mintty" -i /msys2.ico /usr/bin/bash --login %1 %2 %3 %4 %5 %6 %7 %8 %9
+start "%CONTITLE%" "%WD%mintty" -i /msys2.ico /usr/bin/dash -l %1 %2 %3 %4 %5 %6 %7 %8 %9
exit /b %ERRORLEVEL%
:startconsolez
@@ -89,12 +89,12 @@
echo ConEmu not found. Exiting. 1>&2
exit /b 1
)
-start "%CONTITLE%" "%ComEmuCommand%" /Here /Icon "%WD%..\..\msys2.ico" /cmd "%WD%bash" --login %1 %2 %3 %4 %5 %6 %7 %8 %9
+start "%CONTITLE%" "%ComEmuCommand%" /Here /Icon "%WD%..\..\msys2.ico" /cmd "%WD%dash" -l %1 %2 %3 %4 %5 %6 %7 %8 %9
exit /b %ERRORLEVEL%
:startsh
set MSYSCON=
-start "%CONTITLE%" "%WD%bash" --login %1 %2 %3 %4 %5 %6 %7 %8 %9
+start "%CONTITLE%" "%WD%dash" -l %1 %2 %3 %4 %5 %6 %7 %8 %9
exit /b %ERRORLEVEL%
:EOF
@@ -144,7 +144,7 @@
:printhelp
echo Usage:
-echo %~1 [options] [bash parameters]
+echo %~1 [options] [dash parameters]
echo.
echo Options:
echo -mingw32 ^| -mingw64 ^| -msys[2] Set shell type
@@ -159,6 +159,6 @@
echo -help ^| --help ^| -? ^| /? Display this help and exit
echo.
echo Any parameter that cannot be treated as valid option and all
-echo following parameters are passed as bash command parameters.
+echo following parameters are passed as dash command parameters.
echo.
exit /b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment