A-A+
MAC终端自动提示插件的安装
一、安装oh my zsh
oh my zsh官网:http://ohmyz.sh/
安装:$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
二、安装zsh-autosuggestions插件
使用的是托管在github.com上的zsh-autosuggestions插件,
地址:https://github.com/tarruda/zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
1.vim ~/.zshrc #打开配置文件
2.plugins=(git zsh-autosuggestions) #添加插件进去
3.重新启动命令行窗口即可