Windows Terminal 集成 Git Bash
1、安装 Windows Terminal
微软商店搜索安装即可
2、集成 Git Bash
依次点击:下拉框 → 设置 → 添加新配置文件 → 新建空配置文件 → 常规
然后就可以自定义了
我的配置文件的git安装home目录是D:\Program Files\Git,按需修改
名称:Git Bash
命令行:D:\Program Files\Git\bin\bash.exe
启动目录:%USERPROFILE%
图标:D:\Program Files\Git\mingw64\share\git\git-for-windows.ico
保存就可以了
3、常见问题
- 目录包含中文时不能正常显示
- 不能使用ll命令
使用使用 Windows terminal
打开 Git Bash
修改文件:vim /etc/bash.bashrc
# 设置windows terminal 打开bash时支持显示中文目录
export