[ 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
相关推荐
秃然想通3 小时前
mac电脑搭载c、c++环境(基于vs code)
macos
归辞...4 小时前
「iOS」——GCD其他方法详解
macos·ios·cocoa
啊啊啊~~10 小时前
新mac电脑软件安装指南(前端开发用)
macos·node·n·oh my zsh·solarized
lm down10 小时前
ComfyUI中运行Wan 2.1工作流,电影级视频,兼容Mac, Windows
人工智能·macos·ai作画·视频
天安彩10 小时前
mac下 vscode 运行 c++无法弹出窗口
c++·vscode·macos·clang
太阳伞下的阿呆10 小时前
配置Mac/Linux终端启动执行脚本
linux·运维·macos
芦苇Z12 小时前
macOS 安装应用软件的三种方式
macos
Digitally16 小时前
如何将荣耀手机的照片传输到 Mac
macos·智能手机
Digitally16 小时前
如何将 iPhone 备份到 Mac/MacBook
macos·ios·iphone
猫头虎17 小时前
[精选] 2025最新生成 SSH 密钥和 SSL 证书的标准流程(Linux/macOS/Windows系统服务器通用方案)
linux·服务器·开发语言·macos·ssh·ssl·ai编程