第一步:安装字体文件
前往 https://github.com/romkatv/powerlevel10k#manual-font-installation 下载并安装 MesloLGS NF Regular.ttf
第二步:安装zsh
brew install zsh
chsh -s /bin/zsh
第三步:安装 Powerlevel10k
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
在 zsh 的配置文件 vim ~/.zshrc 中设置 ZSH_THEME="powerlevel10k/powerlevel10k"
第四步:安装插件
brew install autojump
plugins=(
git
autojump
zsh-autosuggestions
zsh-syntax-highlighting
)
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh