mac zsh 命令行高亮显示,及自动补全
先安装oh-my-zsh插件
//克隆项目到本地
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
安装自动提示插件
//克隆项目到本地
git clone [https://github.com/zsh-users/zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
或者直接用brew安装
brew install zsh-autosuggestions
安装自动补全插件
//克隆项目到本地
git clone [https://github.com/zsh-users/zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
或者直接用brew安装
brew install zsh-autosuggestions
安装颜色高亮插件
//克隆项目到本地
git clone git://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
或者直接用brew安装
brew install zsh-autosuggestions
编辑~/.zshrc文件
vim ~/.zshrc
plugins=(git z compleat zsh-autosuggestions zsh-syntax-highlighting)
保存并退出,重启 .zshrc
source ~/.zshrc
我用brew安装并没有编辑~/.zshrc文件
参考地址: 参考地址。