zsh


# 安装 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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM