Skip to content

Instantly share code, notes, and snippets.

@myvyang
Last active January 8, 2020 06:39
Show Gist options
  • Save myvyang/58985bda2e990c29f373799aa9784aed to your computer and use it in GitHub Desktop.
Save myvyang/58985bda2e990c29f373799aa9784aed to your computer and use it in GitHub Desktop.
cd "$(brew --repo)"
git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.zshrc
source ~/.zshrc
npm config set registry http://registry.npm.taobao.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment