ubuntu22.04安装zsh,oh-my-zsh主题和插件的脚本

admin2024-04-03  1

安装zsh

sudo apt install zsh
curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh -o install.sh
chmod u+x install.sh
sed -i '73c REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}' install.sh
sed -i '72c REPO=${REPO:-mirrors/oh-my-zsh}' install.sh
./install.sh

安装oh-my-zsh,powerlevel10k

#!/usr/bin/zsh
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://gitee.com/mirror-hub/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://gitee.com/chenweizhen/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i '11c ZSH_THEME="powerlevel10k/powerlevel10k"' ${HOME}/.zshrc
sed -i '73c plugins=(git zsh-syntax-highlighting zsh-autosuggestions  extract z pip sudo  )' ${HOME}/.zshrc
source ${HOME}/.zshrc
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明原文出处。如若内容造成侵权/违法违规/事实不符,请联系SD编程学习网:675289112@qq.com进行投诉反馈,一经查实,立即删除!