大多数 Linux 发行版中的默认 Shell 是 Bash。Bash 缺乏代码高亮,不易阅读。本文旨在通过安装 Zsh
、oh-my-zsh
,并应用 Powerlevel10k
主题来解决这一问题。
环境:Windows10 Pro 21H2,OS build: 19044.1766;基于 WSL 的 Ubuntu20
环境准备 WSL2
打开或关闭Windows功能->Hyper-V、Virtual Machine Platform、Windows Subsystem for Linux
Win11家庭版中只需要开启
Windows Subsystem for Linux
即可
# 1.必须运行 Windows 10 版本 2004 及更高版本(内部版本 19041 及更高版本)或 Windows 11
# 2.在管理员模式下打开 PowerShell 或 Windows 命令提示符
wsl --install
美化 Terminal
下载 zsh
sudo apt install