配置文件中添加
{
"acrylicOpacity": 0.75,
"closeOnExit": false,
"colorScheme": "Argonaut",
"commandline": "msys2.cmd",
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"fontFace": "Source Code Pro for Powerline",
"fontSize": 10,
"guid": "{09dc5eef-6840-4050-ae69-21e55e6a2e63}",
"historySize": 9001,
"icon": "ms-appdata:///roaming/msys2.ico",
"name": "MSYS2",
"padding": "0, 0, 0, 0",
"snapOnInput": true,
"useAcrylic": true
}
创建msys2.cmd
@echo off
setlocal
set PATH=%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Docker\Docker\resources\bin
set MSYS2_PATH_TYPE=inherit
REM set TERM=xterm-256color
set MSYSROOT=C:\tools\msys64
if "%MSYSTEM%"=="" (
set MSYSTEM=MSYS
)
set CHERE_INVOKING=1
%MSYSROOT%\usr\bin\zsh.exe --login
@echo off
setlocal
rem To activate windows native symlinks uncomment next line
set MSYS=winsymlinks:nativestrict
rem Shell types
if "x%~1" == "x-msys2" set MSYSTEM=MSYS
if "x%~1" == "x-mingw32" set MSYSTEM=MINGW32
if "x%~1" == "x-mingw64" set MSYSTEM=MINGW64
rem Shell types
rem set MSYSTEM=MSYS
C:\msys64\usr\bin\bash.exe --login -i
exit /b 0
"commandline" : "C:/msys64/msys2_shell.cmd -defterm -no-start -msys2"
"commandline" : "C:/msys64/msys2_shell.cmd -defterm -no-start -mingw64"
"commandline" : "C:/msys64/msys2_shell.cmd -defterm -no-start -mingw32"