目录
已安装,git仓库更改为gitee
新安装
从gitee下载install.sh
install.sh中仓库修改为gitee地址
install.sh添加执行权限
执行install.sh安装
配置
禁用自动更新
手动执行更新
已安装,git仓库更改为gitee
cd ~/.oh-my-zsh
git remote set-url origin https://gitee.com/mirrors/oh-my-zsh.git
# 查看
git remote -v
新安装
从gitee下载install.sh
wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
install.sh中仓库修改为gitee地址
sed -i 's/REPO=${REPO:-ohmyzsh\/ohmyzsh}/REPO=${REPO:-mirrors\/oh-my-zsh}/' install.sh
sed -i 's/REMOTE=${REMOTE:-https:\/\/github.com\/${REPO}.git}/REMOTE=${REMOTE:-https:\/\/gitee.com\/${REPO}.git}/' install.sh
install.sh添加执行权限
chmod +x install.sh
执行install.sh安装
./install.sh
配置
禁用自动更新
sed -i 's/# DISABLE_AUTO_TITLE="true"/DISABLE_AUTO_TITLE="true"/' ~/.zshrc
手动执行更新
upgrade_oh_my_zsh
# 或者
./.oh-my-zsh/tools/upgrade.sh
|