This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
oliverdavies.uk-old-sculpin/source/_posts/open-sublime-text-2-mac-os-x-command-line.md
Oliver Davies 85a10c545b Run prettier on all *.md files
```
prettier '{app,source}/**/**.md' --write
```
2020-03-08 17:57:45 +00:00

24 lines
684 B
Markdown

---
title: Open Sublime Text 2 from the Mac OS X Command Line
date: 2012-11-17
excerpt: How to open Sublime Text from the command line.
tags:
- sublime-text
- mac-os-x
- terminal
---
How to open Sublime Text from the command line.
Paste the following code into the Mac OS X Terminal, assuming that you've
installed Sublime Text 2 into the /Applications folder.
```language-bash
$ 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.