作者: Ju4t
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
通过 Homebrew 搜索 zsh,即会发现有 zsh-autosuggestions
# 安装
brew install zsh-autosuggestions
# 写入.zshrc
echo "source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
官网 https://github.com/zsh-users/zsh-autosuggestions