Adeline Yaw

AI Integration Specialist (Happiness Engineer) @ Automattic

How to Open Sublime Text from Mac OS X Terminal

It was brought to my attention that you can open Sublime Text via Terminal whilst watching a screencast by @James Stone on “Getting Sassy with ZURB Foundation 5 (Sass/Scss)” by typing: subl . Now I know what you’re thinking, well this isn’t new, you’re telling me that you can open…

It was brought to my attention that you can open Sublime Text via Terminal whilst watching a screencast by @James Stone on “Getting Sassy with ZURB Foundation 5 (Sass/Scss)” by typing:

subl .

Now I know what you’re thinking, well this isn’t new, you’re telling me that you can open files too?! (Duh) anyway I was on the hunt to find out how to ‘configure your bash profile etc’ but for starters, my hidden files were… hidden and therefore I couldn’t locate my ‘bash profile’.

To show your hidden files on a Mac, follow this post: “Quickly Show/Hide Hidden Files on Mac OS X Mavericks” by @Ian Lunn

So I finally came across this post by @thatpatrickguy on “Running Sublime Text from your OS X terminal” and it worked, YAY!

Update (21st November, 2018)
These days, I’ve been using Alfred. Just a note that the default key combo (Cmd + Spacebar) is set to open Spotlight so you’ll need to re-assign this shortcut (if you want to replace Spotlight with Alfred). Once that’s done, open Alfred then enter <code>Sublime</code> and you should see the application to select.

Accessing Sublime Text via Alfred
+ ,

Discover more from Adeline Yaw

Subscribe now to keep reading and get access to the full archive.

Continue reading