> brew install antigen
# Load oh-my-zsh library.
antigen use oh-my-zsh
# Select theme.
antigen theme romkatv/powerlevel10k
# Load bundles from the default repo (oh-my-zsh).
antigen bundle git
antigen bundle z
antigen bundle autojump
antigen bundle common-aliases
antigen bundle extract
antigen bundle d
antigen bundle zsh_stats
antigen bundle take
antigen bundle command-not-found
antigen bundle docker
# Load bundles from external repos.
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
# Tell Antigen that you're done.
antigen apply
# Load Antigen
source /usr/local/etc/antigen/antigen.zsh
# Load Antigen configurations
antigen init ~/.antigenrc
> source ~/.zshrc
重启iTerm2之后会出现p10k主题配置的交互,如果没有,手动执行
> p10k configure
p10k configure配置过程中会安装推荐的MesloLGS NF字体,只需要输入yes就行
如果还出现乱码,则手动下载MesloLGS NF字体,p10k网址