Hello everyone! First post here I hope I’m in the right category
I have a case where, on my school computers, I’d like to use the subl
command to open a local install of the Sublime Text.app that lives in my home folder (OSX). It might happen depending on the computer that another install of Sublime (which is not up to date) resides in /Applications
, but in any case, when I try to use the subl
command it’ll always try to open the version in /Applications
, even if it doesn’t exist.
Here are the steps I took for now:
- Install Sublime Text.app in
~/.local
- Symlink’d the subl command:
ln -s ~/.local/Sublime\ Text.app/Contents/SharedSupport/bin/subl ~/.local/bin/subl
- Added the
~/.local/bin
folder to my path (in front of anything else)
This unfortunately doesn’t work. Running the app from my local folder works fine if I open it from the Finder however.
If you guys know a fix or need more information feel free to reply!
Thanks a lot for your attention.
Edit/ additional information
$ where subl
~/.local/bin/subl
Running subl
when ST is not installed in /Applications
$ subl
Unable to find Sublime Text
What the symlink looks like:
$ ls -l ~/.local/bin
subl -> ~/.local/Sublime Text.app/Contents/SharedSupport/bin/subl