Homebrew 替换中科大源

Homebrew 替换中科大源
# 替换各个源
$ git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
$ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
$ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

# zsh 替换 brew bintray 镜像
$ echo export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles >> ~/.zshrc
$ source ~/.zshrc

# bash 替换 brew bintray 镜像
$ echo export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles >> ~/.bash_profile
$ source ~/.bash_profile

# 刷新源
$ brew update

 摘自: https://cloud.tencent.com/developer/article/1614039

Homebrew 替换中科大源

上一篇:4.5三维曲面


下一篇:虚拟机的克隆