[ Mac ] HomeBrew Set Sources from China

edit system environments
bash 复制代码
open ~/.bash_profile
if not exist, create one
bash 复制代码
touch ~/.bash_profile
add this to script end
bash 复制代码
# 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
bash 复制代码
source ~/.bash_profile
相关推荐
白总Server4 小时前
Golang 依赖注入:构建松耦合架构的关键技术
linux·运维·服务器·macos·架构·golang·xcode
awp2586 小时前
Mac 芯片系列 安装cocoapod 教程
macos
海尔辛7 小时前
Unity Mac 笔记本操作入门
macos·unity·游戏引擎
I烟雨云渊T13 小时前
iOS 电子书听书功能的实现
macos·ios·cocoa
qq_2147826114 小时前
mac下通过anaconda安装Python
python·macos·jupyter
程知农1 天前
Mac电脑_钥匙串操作选项变灰的情况下如何删除?
macos
键盘敲没电1 天前
【iOS】多线程基础
学习·macos·ios·objective-c·cocoa
Wario1 天前
我在 Mac 上装了 Aerospace,效率翻倍不是说说而已
macos·mac
西京刀客1 天前
macos常见且应该避免被覆盖的系统环境变量(避免用 USERNAME 作为你的自定义变量名)
macos
明天不下雨(牛客同名)1 天前
Mac查看MySQL版本的命令
macos