# 安装 autojump
brew install autojump
安装完的提示
Add the following line to your ~/.bash_profile or ~/.zshrc file:
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
# 安装zsh-users插件
cd ~/.oh-my-zsh/custom/plugins/
# 安装zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
vim ~/.zshrc
在plugins 添加
plugins=(git zsh-syntax-highlighting zsh-autosuggestions autojump mvn brew node npm)
在 末尾添加
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh
source /etc/profile #(添加这一行的目的是可以执行之前的老命令)
添加完成后
source ~/.zshrc