其他分享
首页 > 其他分享> > zsh

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

 

标签:profile,opt,autojump,etc,homebrew,zsh
来源: https://www.cnblogs.com/devpage/p/15323779.html