为brew设置代理

一. 让 git 通过socks5代理服务器发出http请求

git config --global http.proxy 'socks5://127.0.0.1:1080'

二. 让 curl 也走代理

echo 'proxy=socks5://127.0.0.1:1080' > ~/.curlrc
posted @ 2022-02-08 10:05  fmcdr  阅读(1127)  评论(0编辑  收藏  举报