brew install 慢的原因
cd ~/Documents
mkdir repository
cd repository
git clone --mirror https://github.com/Homebrew/brew.git
git clone --mirror https://github.com/Homebrew/homebrew-core.git
git clone --mirror https://github.com/Homebrew/homebrew-cask.git
cd /usr/local/Homebrew/
git remote set-url origin ~/Documents/repository/brew.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git remote set-url origin ~/Documents/repository/homebrew-core.git
cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
git remote set-url origin ~/Documents/repository/homebrew-cask.git
https://www.zhihu.com/question/35928898
/bin/zsh -c “$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)”
/usr/bin/ruby -e “$(curl -fsSL https://gitee.com/xueweihan/codes/vfrgh7z8qcjlx1ubwt6nk71/raw?blob_name=brew_install.sh)”