获取当前路径绝对地址
basePath=$(cd `dirname $0`; pwd)
安装 Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
//国内安装brew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
// 升级某个库
brew upgrade XXX
//安装某个库
brew install XXX
//移除某个库
brew remove XXX
安装 oh my zsh
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
//更新
upgrade_oh_my_zsh
cocoapods
sudo gem install cocoapods
端口被占用了, 查看端口PID
lsof -i tcp:8080
kill掉占用8080端口的PID
kill 9603(这里替换成占用8080端口的PID)