1、安裝
現有的腳本
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 選中科院的
2、切換源
目前切換的是阿里雲的
1、HomeBrew 安裝后 在本地 cd /usr/local/Homebrew ,然后 git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.git
2、然后 cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core ,然后 git remote set-url origin https://mirrors.aliyun.com/homebrew/homebrew-core.git
3、刷新下 文件 echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
4、brew update