- 浏览器打开腾讯源地址可见 .git 文件列表:
https://mirrors.cloud.tencent.com/homebrew/
- git 地址替换:
cd "$(brew --repo)"
git remote set-url origin http://mirrors.cloud.tencent.com/homebrew/brew.git
mkdir -p "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
- git 地址替换:
cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin http://mirrors.cloud.tencent.com/homebrew/homebrew-core.git
- 执行命令查看 shell 版本:
echo $SHELL
- 在(bash)
~/.bash_profile
或(zsh)~/.zshenv
中添加 2 行环境变量- HOMEBREW_NO_INSECURE_REDIRECT=1
- HOMEBREW_BOTTLE_DOMAIN=https://mirrors.cloud.tencent.com/homebrew-bottles
- 执行命令:(bash)
source ~/.bash_profile
或(zsh)source ~/.zshenv
mac brew 使用腾讯数据源
于 2023-07-29 22:13:50 首次发布