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
本博文本意在于记录个人的思考与经验,部分博文采用英语写作,可能影响可读性,请见谅
本文来自博客园,作者:ZXYFrank,转载请注明原文链接:https://www.cnblogs.com/zxyfrank/p/17138271.html