Iterm2 + oh my zsh安装及配置
- 安装iTerm2:下载链接,安装完成后进行下一步。
- 安装oh my zsh:
-
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- 设置iTerm2的字体样式:iTerm2 -> Preferences -> Profiles -> Text -> change font(18,monaco)
-
- 安装zsh自动补全和高亮插件
-
cd ~/.oh-my-zsh/custom/plugins git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-syntax-highlighting.git cd ~ vim .zshrc
-
添加插件:plugins=(zsh-autosuggestions git)、plugins=(zsh-autosuggestions zsh-syntax-highlighting git)
- 修改成功后,执行source ~/.zshrc或重启 shell 生效
-