Mac 安装Oh My Zsh 遇到的问题

mac 版本地命令不好看想添加颜色,首选zsh

1、安装

方法一:用git clone 方法

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

提示超时,试另一个方法

方法二:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

输入完命令出错:curl: (28) Failed to connect to raw.githubusercontent.com port 443 after 75018 ms: Operation timed out

以上两种方案都没有安装成功。解决方案如下:

(1)输入地址看是否能访问

https://raw.githubusercontent.com/Homebrew/install/master/install

(2)地址不能访问

本地文件夹目录:/etc (快捷键:command+shift+G)

找到host文件

在host 里面添加(添加内容中199.232.68.133是raw.githubusercontent.com所在的服务器IP(通过 https://www.ipaddress.com/ 获取)

 成功如下:

 修改背景和字体

自己喜欢哪个设置就行

猜你喜欢

转载自blog.csdn.net/u013592575/article/details/125275904