自学内容网 自学内容网

[ Mac ] HomeBrew Set Sources from China

edit system environments
open ~/.bash_profile
if not exist, create one
touch ~/.bash_profile
add this to script end
# Brew
export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.ustc.edu.cn/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles"
export HOMEBREW_API_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles/api"
export HOMEBREW_NO_ENV_HINTS="1"
reload script to take effect
source ~/.bash_profile

原文地址:https://blog.csdn.net/u013718730/article/details/145026665

免责声明:本站文章内容转载自网络资源,如侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!