Clone this repository somewhere on your machine. This guide will assume ~/.zsh/zsh-autosuggestions
.
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
Add the following to your .zshrc
:(将下列语句添加到 ~/.zshrc 文件中)
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
Start a new terminal session.