text 从命令行启动Sublime Text(在OSX上)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 从命令行启动Sublime Text(在OSX上)相关的知识,希望对你有一定的参考价值。

//Requirements:
//Sublime text 2 or 3 installed in your system within Applications folder

//Setup:

In order to launch sublime from command line you only need to create a symlink /usr/local/bin/subl point to sublime app, 
to do so run the following in the command line:

//Run to use Sublime Text 3:
\!h $ ln -sv "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

//Test it out:
\!h $ subl test.rb


it should open new file test.rb sublime text

以上是关于text 从命令行启动Sublime Text(在OSX上)的主要内容,如果未能解决你的问题,请参考以下文章