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}

  

posted @   meetrice  阅读(91)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享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面板一键包
点击右上角即可分享
微信分享提示