Skip to content

Instantly share code, notes, and snippets.

@xixilive
Created October 9, 2020 09:11
Show Gist options
  • Save xixilive/84a84c959ad59c8741cd880791aed298 to your computer and use it in GitHub Desktop.
Save xixilive/84a84c959ad59c8741cd880791aed298 to your computer and use it in GitHub Desktop.
git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment