当前位置: 首页 > 工具软件 > ZSH antigen > 使用案例 >

MacOS配置zsh+iTerm2+oh-my-zsh+antigen+powerlevel10k

漆雕稳
2023-12-01

安装antigen管理zsh插件

> brew install antigen

配置~/.antigenrc

# 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

配置~/.zshrc重启iTerm2

# Load Antigen

source /usr/local/etc/antigen/antigen.zsh

# Load Antigen configurations

antigen init ~/.antigenrc
> source ~/.zshrc

配置powerlevel10k主题

重启iTerm2之后会出现p10k主题配置的交互,如果没有,手动执行

> p10k configure

安装字体

p10k configure配置过程中会安装推荐的MesloLGS NF字体,只需要输入yes就行

如果还出现乱码,则手动下载MesloLGS NF字体,p10k网址

powerlevel10k

 类似资料: