安装 zsh-autosuggestions 插件
# clone 插件到 on-my-zsh 插件路径
git clone https://gitee.com/phpxxo/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# 修改 .zshrc 配置 插件
vi ~/.zshrc
---------------------------------------------------------------------
plugins=(git
zsh-autosuggestions
)
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=yellow'
----------------------------------------------------------------------
source ~/.zshrc
网友评论