- install windows terminal
- install git bash
- add git bash to windows terminal
{
"guid": "{1c4de342-38b7-51cf-b940-2309a097f589}",
"hidden": false,
"name": "git bash",
"commandline": "\"D:\\Program Files\\Git\\bin\\bash.exe\" -i -l",
"historySize": 9001,
"name": "Bash",
"closeOnExit": true,
"useAcrylic": true,
"acrylicOpacity": 0.85,
"icon": "D:\\tools\\my-git-bash\\git-icon.png",
"startingDirectory": null
}
- install zsh here, https://packages.msys2.org/package/zsh?repo=msys&variant=x86_64, extract the package and put into git bash directory `C:\Program Files\Git`
2. install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
3. for bug with malformed character
cd ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git checkout tags/v0.6.4 -b v0.6.4-branch
source: https://github.com/zsh-users/zsh-autosuggestions/issues/614
source: https://miaotony.xyz/2020/12/13/Server_Terminal_gitbash_zsh/