Skip to content

General Sublime Text resources and info

Zander Martineau edited this page Dec 21, 2013 · 5 revisions

Downloads

Plugins/Packages

Tutorials/workflow

Sublime Command line tool

Sublime comes with a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Setup

The first task is to make a symlink to subl. Assuming you've placed Sublime Text in the Applications folder, and that you have a ~/bin directory in your path, you can run:

  • Sublime Text 2 (info): ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
  • Sublime Text 3 (info): ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Usage

Typical usage would be to open a folder from the command line, for example cd into your project directory, then run subl ./