下载iterm2
- https://iterm2.com/下载
- 下载完成后双击解压即可
下载oh-my-zsh
https://github.com/ohmyzsh/ohmyzsh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
下载主题powerlevel9k
下载主题,并将主题直接下载到iterm2主题库下
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
下载主题需要的字体
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
配置item2字体
选择 iterm2下preferences>Profiles>Text
字体大小设置一致
修改.zshrc配置
vim ~/.zshrc
ZSH_THEME="powerlevel9k/powerlevel9k"
下载安装插件
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
vim ~/.zshrc
plugins=(git
zsh-autosuggestions
zsh-syntax-highlighting
)