10

wsl2 配置zsh

 3 years ago
source link: https://www.80shihua.com/archives/2706
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

wsl2配置zsh步骤

sudo apt update
sudo apt upgrade

检查zsh是否安装

cat /etc/shells

如果没有安装的话

sudo apt install zsh

下载oh-my-zsh

国内的网络,可能需要配置下hosts,可以参考文章《配置github.com的host访问

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

安装PowerLevel10k主题

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k

配置主题,修改家目录.zshrc文件,设置主题为powerlevel10k

ZSH_THEME="powerlevel10k/powerlevel10k"

安装字体,放入到c:\windows\fonts

字体下载地址:github

MesloLGS NF Regular.ttf
MesloLGS NF Bold.ttf
MesloLGS NF Italic.ttf
MesloLGS NF Bold Italic.ttf

设置远程连接字体

"fontFace": "MesloLGS NF"

激活插件,修改.zshrc配置文件

plugins = (git fasd)



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK