Tuesday, August 9, 2016

Launching Sublime Text 3 from the Mac OSX Command Line

Both Sublime Text 2 and 3 ships with a command line tool called subl that allows you to open the editor from your terminal. Most instructions online teach you how to symlink the tool in a directory that's on the PATH so that you can run it simply by typing subl.

Unfortunately, lots of the instructions that I came across hard coded the tools path for Sublime 2. This failed for me because it turns out Sublime Text 3 uses a different path. To save you a few seconds, here's the symlink command for Sublime Text 3.

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

1 comment:

  1. I was diagnosed as HEPATITIS B carrier in 2013 with fibrosis of the
    liver already present. I started on antiviral medications which
    reduced the viral load initially. After a couple of years the virus
    became resistant. I started on HEPATITIS B Herbal treatment from
    ULTIMATE LIFE CLINIC (www.ultimatelifeclinic.com) in March, 2020. Their
    treatment totally reversed the virus. I did another blood test after
    the 6 months long treatment and tested negative to the virus. Amazing
    treatment! This treatment is a breakthrough for all HBV carriers.

    ReplyDelete