oh-my-zsh安装

阅读 81

2022-04-08

安装zsh

sudo apt install zsh
chsh -s /usr/bin/zsh #切换成zsh

引用karl1864的资源

git clone https://gitee.com/karl1864/linux
cd linux
cp -r zshrc ~/.zshrc
source .zshrc

安装oh-my-zsh

git clone https://gitee.com/mirrors/oh-my-zsh ~/.oh-my-zsh

安装oh-my-zsh :plug

# 重启shell
installzplug
# zpluginstall

注意:如果安装不成功就进行下面的操作
删除目录下的这些文件

cd ~/.oh-my-zsh/custom/plugins
rm h zsh-syntax-highlighting zsh-autosuggestions

安装zsh-syntax-highlighting(zsh高亮显示):

git clone https://github.91chi.fun//https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

安装zsh-autosuggestions(zsh 自动补全):

git clone https://github.91chi.fun//https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

安装h插件(zsh cmd检查):

git clone https://github.91chi.fun//https://github.com/YouDad/h.git ~/.oh-my-zsh/custom/plugins/h
source ~/.zshrc

以下内容借鉴的是B站karl1864的教程,并进行了完善

精彩评论(0)

0 0 举报