Mac OS终端使用subl运行Sublime Text 3

1.添加link

1
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

2.编辑PATH

1
vim ~/.bash_profile

3.添加PATH

1
export PATH=/usr/local/bin:$PATH

1
esc -> shift + : -> wq保存退出

4.应用

1
source ~/.bash_profile