Sublime command for mac :
execute those command:
subl 2:
sudo ln -s /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
subl 3:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl
或者
function subl () { "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" . }
上面的所有请确认保证
1:创建了 ~bin目录。
2:在/etc/paths中加入了 ~/bin. (sudo vi /etc/paths)