Window 10下终端美化
WSL(Ubuntu)/MSYS2/Cygwin/PowerShell7
Windows Terminal/Fluent Terminal
Fluent Terminal & PowerShell 7+ & oh-my-posh & posh-git
https://zhuanlan.zhihu.com/p/137595941
https://zhuanlan.zhihu.com/p/137251716
MSYS2 + Windows Terminal
配置
安装 zsh
打开 MSYS2,
pacman -Syu |
由于 msys2 指定 MSYSCON 为 defterm 时默认是执行bash.exe, 我们把 C:\msys64\msys2_shell.cmd 大概第5行的bash 改成 zsh 即可:
set "LOGINSHELL=zsh" |
安装 oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" |
安装 Fira Code 字体
配置到 Windows Terminal
在 settings.json 文件中加入MSYS2的配置
"profiles": |
安装 oh-my-zsh 主题
推荐两款主题
安装插件
cd ~/.oh-my-zsh/plugins |
启用插件
# 编辑~/.zshrc |