brew:
关闭自动更新:
vim ~/.bash_profile
export HOMEBREW_NO_AUTO_UPDATE=true
更换国内源:
cd “$(brew --repo)”
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
#替换homebrew-core.git
cd “$(brew --repo)/Library/Taps/homebrew/homebrew-core”
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
brew update