Win10打造Shell环境
- 时间:2021.8.4
1.软件准备
- Git-for-windows
- Windows Terminal (Microsoft Store可下载)
2.环境配置
- 将Git的家目录下的bin加入环境变量,步骤如下:
- 搜索环境变量
- 添加
GIT_HOME
环境变量,值为安装目录 - 新建环境变量
- 修改Path,增加bin和usr/bin,两行
- 此时,通过 Win+R,输入bash,可以打开git的bash界面
- 搜索环境变量
- 配置Windows Terminal
- 添加启动命令
顺便设置启动命令 - 到这里已经可以使用shell的命令了
- 添加启动命令