清华
替换brew.git:
git -C "$(brew --repo)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
替换homebrew-core.git:
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
应用生效
brew update
替换homebrew-bottles:
1 | echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles' >> ~/.bash_profile |
阿里
替换brew.git:
1 | cd "$(brew --repo)" |
替换homebrew-core.git:
1 | cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core" |
应用生效
brew update
替换homebrew-bottles:
1 | echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.aliyun.com/homebrew/homebrew-bottles' >> ~/.bash_profile |