想在mac上使用oh-my-zsh美化终端,发现执行
# curl 安装方式
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget 安装方式
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
均无法连接raw.githubusercontent.com,检查发现被qiang了,只有开启全局代理才能访问。但是开启全局代理后,仍然被拒绝连接。
拒绝方案:
- 全局代理模式下访问脚本页面
- 右键存储为.sh文件
3.终端找到相应位置,依次执行两条命令:
chmod +x install.sh
./install.sh
安装成功。