Homebrew 替换源
国内网络的问题,Homebrew 速度有时巨慢无比,需要替换源,这里使用中科大镜像做个笔记
-
替换Homebrew默认源
1. cd "$(brew --repo)" 2. git remote set-url origin git://mirrors.ustc.edu.cn/brew.git
-
替换Homebrew Bottles源
1. echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile 2. source ~/.bash_profile