$ cd `brew --prefix`
$ rm -rf Cellar
$ brew prune
$ rm `git ls-files`
$ rm -r Library/Homebrew Library/Aliases Library/Formula Library/Contributions
$ rm -rf .git
$ rm -rf ~/Library/Caches/Homebrew
1.查看Homebrew命令:brew help
2.安装任意包:brew install <packageName>,eg:brew install node
3.卸载任意包:brew uninstall <packageName>,eg:brew uninstall git
4.查询可用包:brew search <packageName>
5.查询已安装包列表:brew list
6.查看任意包信息:brew info <packageName>
7.更新Homebrew:brew update
8.Homebrew帮助信息:brew -h
8.查看brew版本:brew -v
10.更新brew版本:brew update
11.整理重复语句:open ~/.zshrc -e、open ~/.bash_profile -e