之前用中科大的,但好象中科大有缺失源,或者有时候在update的时候会卡。所以换到了 上海交大的源
一句话的命令:
cd "$(brew --repo)" && git remote set-url origin https://mirrors.sjtug.sjtu.edu.cn/git/brew.git && cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" && git remote set-url origin https://mirrors.sjtug.sjtu.edu.cn/git/homebrew-core.git && cd "$(brew --repo)"/Library/Taps/homebrew/homebrew-cask && git remote set-url origin https://mirrors.sjtug.sjtu.edu.cn/git/homebrew-cask.git && echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.sjtug.sjtu.edu.cn/homebrew-bottles' >> ~/.bash_profile
说白了,就是改了:brew,brew-core,brew-cask,和brew-bottles的信息其他没啥
速度是真快了很多。
当然话说回来。中科大的源,说明文件是最详细的。。。。交大的,就一句话。