Loading

oh-my-zsh 自定义安装位置

wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh

https://blog.csdn.net/qwe641259875/article/details/107201760/

然后执行install.sh:./install.sh
如果发现很慢,可以修改为gitee:
vim install.sh进入编辑状态:
找到以下部分:

# 修改这一行
ZSH=${ZSH:-~/.oh-my-zsh}
REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
BRANCH=${BRANCH:-master}

插件镜像(记得先设置好zsh的https proxy)

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/zxy_home/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://ghproxy.com/https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://ghproxy.com/https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
posted @ 2023-02-20 17:28  ZXYFrank  阅读(49)  评论(0编辑  收藏  举报