cd /usr/local/Homebrew
git remote set-url origin https://gitea.com/Homebrew/brew.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
git remote set-url origin https://gitea.com/Homebrew/homebrew-cask.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git remote set-url origin https://gitea.com/Homebrew/homebrew-core.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-services
git remote set-url origin https://gitea.com/Homebrew/homebrew-services.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask-versions
git remote set-url origin https://gitea.com/Homebrew/homebrew-cask-versions.git
export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles
1
imzcg 2019-10-23 23:46:19 +08:00 via Android
gitee 和清华源哪个快,有感觉吗
|
2
lovestudykid 2019-10-24 00:08:18 +08:00
homebrew 没有自己 host 文件,都是到官网链接下载吧?
|
3
chendy 2019-10-24 00:21:00 +08:00
http_proxy 解千愁
|
4
liangch 2019-10-24 08:43:05 +08:00
git 源建议用原始的。
|
5
1002xin 2019-10-24 11:38:12 +08:00
好代理就完事了,这些源到最后一样坑的是自己
|
6
dif 2019-10-24 13:46:24 +08:00
function proxy(){
export http_proxy=http://127.0.0.1:1087; export https_proxy=http://127.0.0.1:1087; echo -e "梯子模式" } function unproxy(){ unset http_proxy unset https_proxy echo -e "和谐模式" } |
7
binmiui 2019-10-29 16:43:55 +08:00
function proxy(){
export all_proxy=socks5://127.0.0.1:1086 echo -e "梯子模式" } function unproxy(){ unset all_proxy echo -e "和谐模式" } |