windows下vscode使用msys2+zsh终端
1.安装msys2
2.打开msys2安装zsh
pacman -S zsh
3.安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
国内需要代理
export http_proxy=127.0.0.1:1001
4.集成进vscode
在vscode设置中搜索 "terminal.integrated.profiles.windows"
"terminal.integrated.profiles.windows": {
"GitBash": {
"path": "D:\\dev\\msys64\\msys2_shell.cmd",
"args": [
"-defterm",
"-mingw64",
"-no-start",
"-here",
"-lic",
"cd $PWD; exec zsh"
]
}
},
设置为vscode默认终端
"terminal.integrated.defaultProfile.windows": "GitBash",
5. msys2下安装开发环境
acman -Syu
pacman -S mingw-w64-x86_64-git
pacman -S {mingw-w64-x86_64-gcc,mingw-w64-x86_64-gdb,mingw-w64-x86_64-python-pip}
浙公网安备 33010602011771号