I\'m having difficulty getting this set up. I fixed my .bash_profile
, and created the symlink using the following command from the Sublime website:
I tried several combinations using sudo
and also including or excluding leading /
and escaping spaces in the Sublime\ Text.app
package.
What worked to create the desired symlink was:
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl
I did not have to use sudo
or modify $PATH
.
For reference, I am on Mac OS Mojave 10.14.
echo $PATH
currently (and without any modification by me) shows the following:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
You can tell if this worked by typing which subl
immediately after running the ln
command above. If you don't get a line of output showing you where Bash found your subl
command then you don't have it.