# script **Repository Path**: xyz_zen/script ## Basic Information - **Project Name**: script - **Description**: ohmyzsh中github的链接替换为gitee. - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-31 - **Last Updated**: 2023-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 更换github链接为gitee,达到快速下载的目的,例如ohmyzsh等 ## ohmyzsh > yum install -y git zsh #使用ohmyzsh前要先安装git和zsh > sh -c "$(wget -O- https://gitee.com/xyz_zen/script/raw/master/ohmyzsh.sh)" > sh -c "$(curl -fsSL https://gitee.com/xyz_zen/script/raw/master/ohmyzsh.sh)" > sh -c "$(fetch -o - https://gitee.com/xyz_zen/script/raw/master/ohmyzsh.sh)" 更换主题为lukerandall > sed -ri 's#(ZSH_THEME=)(.*)#\1"lukerandall"#g' ~/.zshrc && source ~/.zshrc