安装 zsh
Ubuntu 下:
1 | apt-get install zsh |
macOS 下:
1 | brew install zsh |
后面的内容两个系统通用。
安装 oh-my-zsh
1 | wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh |
然后给 install.sh 添加权限:
1 | chmod +x install.sh |
然后执行 install.sh:
1 | ./install.sh |
如果发现很慢,可以修改为 gitee:
1 | vim install.sh |
进入编辑状态,找到以下部分:
1 | # Default settings |
然后将中间两行改为:
1 | REPO=${REPO:-mirrors/oh-my-zsh} |
然后保存退出,重新执行即可。
版权声明:本文为 CSDN 博主「菜饼同学」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载时请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qwe641259875/article/details/107201760/
