苹果系统macOS下使用国内镜像安装Homebrew
修改安装脚本并安装
cd ~
curl -fsSL >> brew_install
编辑brew_install文件
注释掉BREW_REPO = =
修改为
BREW_REPO =
CORE_TAP_REPO =
安装
/usr/bin/ruby ~/brew_install
替换homebrew源
cd "$(brew --repo)"
git remote set-url origin
cd "$(brew --repo)"
git remote set-url origin
brew update
设置 bintray镜像
echo 'export >> ~/.bash_profile
source ~/.bash_profile