2015-03-16 21:18:03 +00:00
|
|
|
---
|
|
|
|
title: Open Sublime Text 2 from the Mac OS X Command Line
|
2015-03-17 04:04:02 +00:00
|
|
|
nav: blog
|
2015-03-16 21:18:03 +00:00
|
|
|
slug: open-sublime-text-2-mac-os-x-command-line
|
|
|
|
tags:
|
|
|
|
- Sublime Text
|
|
|
|
- Mac OS X
|
|
|
|
- Terminal
|
|
|
|
---
|
|
|
|
Paste the following code into the Mac OS X Terminal, assuming that you've installed Sublime Text 2 into the /Applications folder.
|
|
|
|
|
|
|
|
$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/sublime
|
|
|
|
|
|
|
|
Now you can type `sublime <filename>` open a file or directory in Sublime Text, or `sublime .` to open the current directory.
|
|
|
|
|
|
|
|
You can also type `sublime --help` to see a list of the available commands.
|