#安装homebrew
B0000000M:~ haoss$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
HEAD is now at 724115608 Merge pull request #5308 from GauthamGoli/pin-args
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 4865, done.
remote: Counting objects: 100% (4865/4865), done.
remote: Compressing objects: 100% (4653/4653), done.
remote: Total 4865 (delta 50), reused 869 (delta 21), pack-reused 0
Receiving objects: 100% (4865/4865), 4.03 MiB | 81.00 KiB/s, done.
Resolving deltas: 100% (50/50), done.
Tapped 2 commands and 4650 formulae (4,907 files, 12.6MB).
==> Migrating /Library/Caches/Homebrew to /Users/haoshanshan02/Library/Caches/Homeb
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
B00000007M:~ haoss$ brew -v
Homebrew 1.8.3
Homebrew/homebrew-core (git revision 38eb; last commit 2018-11-19)