1. # 替换brew.git:
    2. cd "$(brew --repo)"
    3. git remote set-url origin https://mirrors.ustc.edu.cn/brew.git
    4. # 替换homebrew-core.git:
    5. cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
    6. # 中国科大:
    7. git remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
    8. # 替换homebrew-bottles:
    9. # 中国科大:
    10. echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bash_profile
    11. source ~/.bash_profile
    12. # 应用
    13. brew update