install homebrew on mac with 1-4 lines code, so easily.
- uninstall old version, if you have not installed it, skip.
- delete old homebrew back files (i do no need these files).
- install in china so easily, just input some answer (1,y,y,1).
- use brew source to download soft in china.
brew --version >/dev/null/ 2>&1;[ $? -eq 0 ] && /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/HomebrewUninstall.sh)";
sudo rm -rf ~/desktop/Old_Homebrew;
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)";
source ~/.zprofile;
todo
- save and set more custom about these code to your gitee or github or other git repo.
- use just 1 line and args preset or enable passing args.
source code
refer
homebrew Tsinghua Open Source Mirror