Configure how to launch Sublime Text from the terminal.

Step 1: Create the bin folder

mkdir ~/bin

Step 2: Create a symbolic link

ln -s '/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl' ~/bin/subl

Step 3: Add the environment variable to your ~/.profile or ~/.bash_profile

export PATH='/Users//bin:$PATH' export EDITOR='subl'

Step 4: Testing

subl ~/.bash_profile

This siteOriginal articleAll follow "Attribution-NonCommercial-ShareAlike 4.0 License (CC BY-NC-SA 4.0)Please retain the following annotations when sharing or adapting:

Original author:Jake Tao,source:"Setting up how to launch Sublime Text from the terminal"

160
0 0 160

Post a reply

Log inYou can only comment after that.
Share this page
Back to top