macos添加subl指令打开sublime text

在命令行输入

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

以后就可以用subl打开sublime text