BREW换源

Updated 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换源
作者:ferried
地址:https://blog.eiyouhe.com/articles/2020/04/26/1587865787226.html