1.镜像下载wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh
2.cd ~/.oh-my-zsh cd tools vim install.sh 替换
REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
为
REPO=${REPO:-mirrors/oh-my-zsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}
3.修改仓库地址
cd ~/.oh-my-zsh
git remote set-url origin https://gitee.com/mirrors/oh-my-zsh.git
git pull
4.将~/.oh-my-zsh/templates/zshrc.zsh-template里面的内容写到~/.zshrc中 source ~/.zshrc生效
也可访问github.com/ohmyzsh/ohm… 安装