下载iterm2地址
https://www.iterm2.com/
升级macOS Catalina后,默认启用zsh,不用单独安装。
安装oh my sh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
安装PowerLine
sudo easy_install pip
pip install powerline-status --user
安装PowerFonts(NOTO MONO最喜欢)
git clone https://github.com/powerline/fonts.git --depth=1
./install.sh
- 之后去iTerm2设置字体
语法高亮
- 进入plugins目录(隐藏)
cd ~/.oh-my-zsh/custom/plugins/
- git下来插件
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
- 编辑zshrc文件启用插件,添加插件名称,如下图:
- source ~/.zshrc
语法补全
- 同样进入插件目录git下来
git clone https://github.com/zsh-users/zsh-autosuggestions
- 后面方式同语法高亮