LoginSignup
7
6

More than 5 years have passed since last update.

TerminalからSublimeText2を開くコマンドをインストールする。

Last updated at Posted at 2012-08-24

Sublimeのパッケージの中にsublコマンドが用意されていますが、
デフォルトではパスが通っておらず使用できないため、パスを通して使えるようにします。

$ echo $PATH

シンボリックをはります。

$ ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

これでsublが使えます。
ファイルを開いたり、

$ subl ./hoge.txt

ディレクトリの中、全体を開くことができます。

$ cd ~/myproject
$ subl .

参考資料:
Document > Miscellaneous > OS X Command Line

7
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
6