一般我們需要三個插件 zsh-autosuggestions autojump zsh-syntax-highlighting
安裝方法如下
安裝 zsh-autosuggestions 自動補全
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
安裝 zsh-syntax-highlighting 高亮展示
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
安裝 autojump自動跳轉(zhuǎn) 用法:j+之前使用過的目錄
brew install autojump
安裝之后 需要到vim ~/.zshrc
plugins=(
git
zsh-autosuggestions
autojump
zsh-syntax-highlighting
)```