45 字
1 分钟
zsh-auto-suggestion
安装
安装 git 和 zsh
sudo apt update && sudo apt install git zsh -y安装 oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"安装 zsh-autosuggestions 和 zsh-syntax-highlighting 到~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestionsgit clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting修改 .zshrc
plugins=( zsh-autosuggestions zsh-syntax-highlighting git extract) zsh-auto-suggestion
https://blog.alfakyun.icu/posts/zsh-auto-suggestion/