Autosuggestion是Oh-myszh的一个插件,作用基本上是根据历史输入指令的记录即时的提示
https://github.com/zsh-users/zsh-autosuggestions
- 安装
git clone https://github.com/zsh-users/zsh-autosuggestions
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- 将插件添加到Oh My Zsh的插件列表中以加载(内部~/.zshrc)
vim ~/.zshrc
//将zsh-autosuggestions 加入plugins
plugins=(zsh-autosuggestions)
source ~/.zshrc