Homebrew 配置

使用ruby脚本安装完成homebrew之后, 需要配置三个源以及添加一些环境变量

	1. export HOMEBREW_NO_AUTO_UPDATE=true # 不自动检查更新
	2. cd $(brew --repo)/Library/到执行的homebrew目录下, git remote set-url origin git://mirrors.ustc.edu.cn/brew.git # 修改默认源
	3. cd "$(brew --repo)/Library/Taps/homebrew/homebrew-core"
git remote set-url origin git://mirrors.ustc.edu.cn/homebrew-core.git    # 修改core源
	
	4. echo 'export HOMEBREW_BOTTLE_DOMAIN=https://mirrors.ustc.edu.cn/homebrew-bottles' >> ~/.bashrc
posted @ 2018-06-08 17:31  gogogo11  阅读(687)  评论(0编辑  收藏  举报