Skip to content
/ hbmm Public

manage and switch homebrew mirrors. homebrew 源镜像切换与管理

License

Notifications You must be signed in to change notification settings

wayou/hbmm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homebrew Mirror Manager

manage and switch homebrew mirrors.

inspired by nrm, witch switch npm registries.

Installing

$ yarn global add hbmm
# or
$ npm install -g hbmm

Usage

List all mirrors

$ hbmm ls

Switch to a mirror

$ hbmm use <mirror_name>

Add a mirror

$ hbmm add <mirror_name> <brew> <core> [description]
  • mirror_name is the unique key to identify the mirror
  • brew is the homebrew git url
  • core is the homebrew-core git url
  • description is optional to describle the mirror

Remove to a mirror

$ hbmm use <mirror_name>

Predefined Mirrors

Following mirrors are included :

  • default
    • brew: https://github.com/Homebrew/brew.git
    • core: https://github.com/Homebrew/homebrew-core.git
  • tsinghua
    • brew: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
    • core: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git
  • ustc
    • brew: https://mirrors.ustc.edu.cn/brew.git,
    • core: https://mirrors.ustc.edu.cn/homebrew-core.git

License

FOSSA Status

About

manage and switch homebrew mirrors. homebrew 源镜像切换与管理

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published