事情背景
默认的源由于网络问题太慢了,经常timeout导致install失败。所以配置国内源。
环境变量
配置.zshrc或者.bash_profile,然后执行source .zshrc或者 source .bash_profile
## 配置brew库,Homebrew源代码仓库
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
## 配置homebrew-core,Homebrew 核心源
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
## 配置bottles,预编译二进制软件包