Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7403170
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2022-06-01 09:52:26


点击(此处)折叠或打开

  1. www.jianshu.com/p/5b48e1fbf314
  2. # 查看 brew.git 当前源
  3. $ cd "$(brew --repo)" && git remote -v
  4. origin https://github.com/Homebrew/brew.git (fetch)
  5. origin https://github.com/Homebrew/brew.git (push)

  6. # 查看 homebrew-core.git 当前源
  7. $ cd "$(brew --repo homebrew/core)" && git remote -v
  8. origin https://github.com/Homebrew/homebrew-core.git (fetch)
  9. origin https://github.com/Homebrew/homebrew-core.git (push)

  10. # 替换为中科大源
  11. $ git -C "$(brew --repo)" remote set-url origin https://mirrors.ustc.edu.cn/brew.git
  12. $ git -C "$(brew --repo homebrew/core)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-core.git
  13. $ git -C "$(brew --repo homebrew/cask)" remote set-url origin https://mirrors.ustc.edu.cn/homebrew-cask.git

  14. # zsh 替换 brew bintray 镜像
  15. $ echo 'export HOMEBREW_BOTTLE_DOMAIN=' >> ~/.zshrc
  16. $ source ~/.zshrc

  17. # bash 替换 brew bintray 镜像
  18. $ echo 'export HOMEBREW_BOTTLE_DOMAIN=' >> ~/.bash_profile
  19. $ source ~/.bash_profile

  20. # 刷新源
  21. $ brew update

阅读(1139) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~