转: Mac OS X 中 HomeBrew 国内镜像
历史文章,保留原始发布日期与正文。文中软件、链接及操作方法可能已变化,实践前请核对当前环境。
cd /usr/local/
git remote set-url origin http://mirrors.ustc.edu.cn/homebrew.git
或者这个:git remote set-url origin git://mirrors.tuna.tsinghua.edu.cn/homebrew.git
brew update
Composer:
方法:
1. Setup your $COMPOSER_HOME/config.json (You can edit by composer config -g -e).
{
"repositories": [
{ "packagist": false },
{
"type": "composer",
"url": "http://composer-proxy.jp/proxy/packagist"
}
]
}