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上)的主要内容,如果未能解决你的问题,请参考以下文章

sh 从命令行启动Sublime Text 3 - 来自http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-li

sublime text2在windows中以命令行启动

sh 从命令行打开Sublime Text

在终端中安装 Sublime Text 的命令行工具“subl”,权限被拒绝?

在终端中安装 Sublime Text 的命令行工具“subl”,权限被拒绝?

无法让 sublime text 3 命令行工具工作