If you are using Sublime Text 3 on your mac, you may want to be able to open files and folders in Sublime via the Terminal?
You can easily do that via creating a new command, lets create the “sublime” command.
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
- open your
~./profilefile either via command line, or another editor:
/usr/local/binto the PATH variable, for example like this:
export PATHand save the file.
- Run this command, which will reload your .profile settings:
You should now be able to open a new Terminal window, and run the following command to open the file or folder in Sublime Text 3!
(This is for Sublime Text 3 only, version 2 has a slightly different path)