代码改变世界

sublime 2/3 for mac link to command

2013-07-01 20:03  破狼  阅读(880)  评论(0编辑  收藏  举报

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)