windows下vscode使用msys2+zsh终端
1.安装msys2
2.打开msys2安装zsh
1 | pacman -S zsh |
3.安装oh-my-zsh
1 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" |
国内需要代理
1 | export http_proxy=127.0.0.1:1001 |
4.集成进vscode
在vscode设置中搜索 "terminal.integrated.profiles.windows
"
1 2 3 4 5 6 7 8 9 10 11 12 13 | "terminal.integrated.profiles.windows" : { "GitBash" : { "path" : "D:\\dev\\msys64\\msys2_shell.cmd" , "args" : [ "-defterm" , "-mingw64" , "-no-start" , "-here" , "-lic" , "cd $PWD; exec zsh" ] } }, |
设置为vscode默认终端
1 | "terminal.integrated.defaultProfile.windows" : "GitBash" , |
5. msys2下安装开发环境
1 2 3 | 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} |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 上周热点回顾(2.24-3.2)
2022-01-11 Windows使用nvm-windows管理node.js多版本切换
2022-01-11 美创意 php react vuejs开源项目推荐
2016-01-11 快速升级PHP5.4、MySql5.5版本WDCP面板一键包