[ 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
相关推荐
共享家95273 小时前
linux-数据链路层
linux·网络·macos
CZIDC13 小时前
MacOS字体看起来比在 Windows 上更好?
macos
Cosmoshhhyyy21 小时前
linux远程部署dify和mac本地部署dify
linux·运维·macos
行星00821 小时前
mac 通过homebrew 安装和使用nvm
macos·npm·node.js
2501_928094651 天前
Mac电脑录屏工具 Omi录屏专家(Mac中文)
macos·mac·录屏工具·omi
森之鸟1 天前
Mac chrome浏览器下载DevEco Studio 6.0.0 Beta2失败
前端·chrome·macos
FairGuard手游加固2 天前
版本更新!FairGuard-Mac加固工具已上线!
macos
金玉满堂@bj2 天前
OS设备UDID查看方法
macos·objective-c·cocoa
庸懒2 天前
Electron自定义菜单栏及Mac最大化无效的问题解决
前端·macos·electron