manage and switch homebrew mirrors.
inspired by nrm, witch switch npm registries.
$ yarn global add hbmm
# or
$ npm install -g hbmm
$ hbmm ls
$ hbmm use <mirror_name>
$ hbmm add <mirror_name> <brew> <core> [description]
mirror_name
is the unique key to identify the mirrorbrew
is the homebrew git urlcore
is the homebrew-core git urldescription
is optional to describle the mirror
$ hbmm use <mirror_name>
Following mirrors are included :
- default
- brew:
https://github.com/Homebrew/brew.git
- core:
https://github.com/Homebrew/homebrew-core.git
- brew:
- tsinghua
- brew:
https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
- core:
https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
- brew:
- ustc
- brew:
https://mirrors.ustc.edu.cn/brew.git
, - core:
https://mirrors.ustc.edu.cn/homebrew-core.git
- brew: