1. 安装brew(可选)
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. 下载安装iterm2
Downloads - iTerm2 - macOS Terminal Replacement
3. 下载安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
4. 下载安装字体
https://github.com/Falkor/dotfiles/blob/master/fonts/SourceCodePro%2BPowerline%2BAwesome%2BRegular.ttf
以及MesloLGS NF
参考
https://github.com/romkatv/powerlevel10k#fonts
在iterms配置中修改字体
iTerm2 → Preferences → Profiles → Text and set Font to MesloLGS NF
.
5. 下载安装配置自动提示
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
6. 下载安装powerlevel10k
git clone https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
7. 语法高亮插件
cd ~/.oh-my-zsh/custom/plugins/
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions
8. 配置
修改 ~/.zshrc文件,找到plugin并增加插件
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
)
9. 配置
p10k configure