SublimeText3 from your terminal using it’s CLI

SublimeText3 has a built in CLI, so if you’re like me and inside your terminal most of the time then using subl saves you time launching the directory you wish to edit.

How to get it running:

1: Check your $PATH - $ echo $PATH

2: /usr/local/bin is in your environment path by default, so let’s use this one to create a symbolic link.

3: Let’s create your symbolic link:

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

4: Refresh your shell: $ exec $SHELL

5: You can now use the subl command.

Enjoy!

It was about time I teach her how to longboard.