BREW换源

  |   0 评论   |   0 浏览

BREW_REPO="https://mirrors.ustc.edu.cn/brew.git"

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

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

brew update