Terminal + Ubuntu安装
1、检查运行WSL 2的要求。如果内部版本不支持WSL2。使用Windows Update Assistant来更新Windows版本。 2、去Microsoft Store 下载安装 Windows Terminal 3、去Microsoft Store 下载安装 Ubuntu
look for Windows Terminal, and hit the install button.
开启wsl2
搜索 "打开或关闭Windows功能"
Terminal 配置
在 Windows Terminal 的下拉菜单中配置 主题配置
Install oh-my-zsh
$ sudo apt install zsh
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh #安装完成后设置当前用户使用 zsh 并重启 wsl
zsh 配置
字体安装
得先安装 Powerline Fonts 这样才会没有乱码,我们不能再 wsl 里面安装该字体,需要在 win10 下安装
git clone https://github.com/powerline/fonts.git --depth=1 # windos 下需先安装 git