之前用mac感觉oh my zsh很不错,就研究了一下windows下的:
- 下载MSYS2 自行下载或: https://pan.baidu.com/s/15WteJL-xU6N_oSm4RUQedg 提取码: ggre (以安装路径C:\msys64为例)
- 安装完修改C:\msys64\etc\nsswitch.conf 大概第八行
df_home:windows
- 启动C:/msys64/msys2.exe安装zsh:
pacman -S zsh
- C:\msys64\msys2_shell.cmd 大概第5行的bash改成zsh即可:
set "LOGINSHELL=zsh"
- vscode的setting.Json追加:
"terminal.integrated.defaultProfile.windows": "GitBash", "terminal.integrated.profiles.windows": { "GitBash": { "path": "C://msys64//msys2_shell.cmd",