Skip to content

Instantly share code, notes, and snippets.

@Harold2017
Created August 17, 2020 04:56
Show Gist options
  • Save Harold2017/80152c7c144f2a2e014d569a176dcfa3 to your computer and use it in GitHub Desktop.
Save Harold2017/80152c7c144f2a2e014d569a176dcfa3 to your computer and use it in GitHub Desktop.
replace brew default src with ustc mirror

replace Homebrew git repo

git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git

replace Homebrew Core git repo

git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

replace Homebrew Cask git repo

git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

replace Homebrew-bottles

echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc source ~/.zshrc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment