系统自带的终端软件就像记事本一样,勉强够用,想用来做开发还是差点什么,因此强烈建议使用 iTerm2,[下载]
在终端输入 chsh -s /bin/zsh
# zsh-autosuggestions
git clone <https://github.com/zsh-users/zsh-autosuggestions> ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# zsh-syntax-highlighting
git clone <https://github.com/zsh-users/zsh-syntax-highlighting.git> ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# 在~/.zshrc中,找到plugins这行,改为如下
plugins=(git z extract themes safe-paste zsh-autosuggestions zsh-syntax-highlighting)