安装oh-my-zsh

2018/7/15 13:42 下午 posted in  Mac
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

自动提示命令

git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions

# 开启插件
nano ~/.zshrc
# 修改添加zsh-autosuggestions
plugins=(
  zsh-autosuggestions
  git
)

语法高亮

brew install zsh-syntax-highlighting

echo "source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc

source ~/.zshrc