CocoaPods 安装过程中qiang代理打开设置

2023-06-24  本文已影响0人  就用帅气点的昵称吧

CocoaPods 安装过程中设置代理的方法

1、输入命令

vi ~/.zshrc 

2、

function on_proxy() {     export no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"     export http_proxy="http://127.0.0.1:7890"     export https_proxy=$http_proxy     export all_proxy=socks5://127.0.0.1:7890     echo -e "\n"     echo -e "\033[32m代理已开启\033[0m" } function off_proxy(){     unset http_proxy     unset https_proxy     unset all_proxy     echo -e "\033[31m代理已关闭\033[0m" }

上一篇 下一篇

猜你喜欢

热点阅读