安装
sudo apt install zsh
git clone https://gitee.com/mirrors/oh-my-zsh.git
cd oh-my-zsh
sh ./tools/install.sh
下载插件
git clone https://gitee.com/qiushaocloud/zsh-autosuggestions.git ~/.oh-my-zsh/plugins/zsh-autosuggestions
git clone https://gitee.com/lightnear/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting
然后再编辑~/.zshrc
的plugins:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
保存更改之后在终端里输入
zsh
来更新配置