MAC常用shell

获取当前路径绝对地址

basePath=$(cd `dirname $0`; pwd)

安装 Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


// 升级某个库
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

你可能感兴趣的:(MAC常用shell)