brew源: https://www.zhihu.com/question/31360766python
摘要git
1. 替換formula 索引的鏡像(即 brew update 時所更新內容)web
cd "$(brew --repo)" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" git remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git brew update
2. 替換Homebrew 二進制預編譯包的鏡像bash
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile source ~/.bash_profile
pip源[ustc]url
https://lug.ustc.edu.cn/wiki/mirrors/help/pypiorm
[global] index-url = https://mirrors.ustc.edu.cn/pypi/web/simple format = columns