[ 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
相关推荐
2501_9153738835 分钟前
Electron 打包与发布指南:让你的应用运行在 Windows、macOS、Linux
windows·macos·electron
心灵宝贝1 小时前
IDEA 安装 SpotBugs 插件超简单教程
java·macos·intellij-idea
名字不要太长 像我这样就好6 小时前
【iOS】源码阅读(二)——NSObject的alloc源码
开发语言·macos·ios·objective-c
原住民的自修室1 天前
Mac 3大好用的复制粘贴管理工具对比
macos·paste·pastenow·maccy
原住民的自修室1 天前
mac 电脑如何打开剪切板
macos·历史记录·复制粘贴·剪切板
闲人一小枚1 天前
mac u盘重装mac10.15Catalina系统
macos
fenglllle1 天前
macOS 15.4.1 Chrome不能访问本地网络
chrome·macos
学渣676562 天前
venv和pyenv在mac上
macos
SZ1701102312 天前
介质访问控制(MAC)
网络·macos
蓉妹妹2 天前
Mac电脑,idea突然文件都展示成了文本格式,导致ts,tsx文件都不能正常加载或提示异常,解决方案详细说明如下
macos·intellij-idea