0
点赞
收藏
分享

微信扫一扫

oh-my-zsh安装

小典典Rikako 2022-04-08 阅读 77
linux

安装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 条评论