/usr/bin/ruby -e "$(curl -fsSL https://raw.githubuseqrcontent.com/Homebrew/install/master/install)"
macOS:~ david$ zsh --version
zsh 5.3 (x86_64-apple-darwin17.0) #還沒安裝前是5.3版
macOS:~ david$ brew install zsh
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/zsh-5.5.1.high_sierra.bottl
######################################################################## 100.0%
==> Pouring zsh--5.5.1.high_sierra.bottle.tar.gz
🍺  /usr/local/Cellar/zsh/5.5.1: 1,444 files, 12.6MB
macOS:~ david$ zsh --version
zsh 5.5.1 (x86_64-apple-darwin17.5.0) #安裝完後更新到最新版