BREW换源

Published on with 0 views and 0 comments

  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


标题:BREW换源
作者:fe
地址:https://blog.eiyouhe.com/articles/2020/04/26/1587865787226.html