Single

在国内安装 oh-my-zsh

安装 zsh
ubuntu 下:

suoo apt-get install zsh

mac下:

brew install zsh
后面的内容两个系统通用

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

然后给install.sh添加权限:

chmod +x install.sh

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

# Default settings
ZSH=${ZSH:-~/.oh-my-zsh}
REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
BRANCH=${BRANCH:-master}

然后将中间两行改为:

REPO=${REPO:-mirrors/oh-my-zsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}

然后保存退出::wq
重新执行即可。

 

 

 

 

 

 

 

 

 

 

————————————————
版权声明:本文为CSDN博主「菜饼同学」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qwe641259875/article/details/107201760/

暂无评论

发表评论

Warning: Undefined variable $user_ID in /www/wwwroot/wiki/wp-content/themes/boxmoe-dove--master/comments.php on line 49

Warning: Undefined variable $user_ID in /www/wwwroot/wiki/wp-content/themes/boxmoe-dove--master/comments.php on line 72

Warning: Undefined variable $user_ID in /www/wwwroot/wiki/wp-content/themes/boxmoe-dove--master/comments.php on line 107