美文网首页Mac优雅使用指南
Mac更改homebrew更新源

Mac更改homebrew更新源

作者: Joeylee1990s | 来源:发表于2020-03-08 09:52 被阅读0次

# 替换 Homebrew

git -C"$(brew --repo)"remote set-url origin https://mirrors.ustc.edu.cn/brew.git

# 替换 Homebrew Core

git -C"$(brew --repo homebrew/core)"remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git

# 替换 Homebrew Cask

git -C"$(brew --repo homebrew/cask)"remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

# 替换 Homebrew-bottles

# 对于 bash 用户

echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles'>> ~/.bash_profile

source~/.bash_profile

# 对于 zsh 用户:

echo'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles'>> ~/.zshrc

source~/.zshrc

https://www.zhihu.com/question/31360766

相关文章

网友评论

    本文标题:Mac更改homebrew更新源

    本文链接:https://www.haomeiwen.com/subject/pezrdhtx.html