Sublime Forum

Using "subl -w" no longer works for $EDITOR

#1

I have it in my ~/.bash_profile that:

export EDITOR="subl -w"

where subl is a symlink from the subl in the application to ~/bin, which is in my $PATH. A few days ago (I updated to the macOS beta), this stopped working and the following appears in my prompt

Unable to find application named ‘subl’

Anyone have a similar issue, or a workaround?

Thanks!

0 Likes

#2

Are you running it in tmux? I remember I had a similar issue when using tmux.

0 Likes

#3

This is regular Terminal in macOS High Sierra.

0 Likes

#4

How about opening file directly using subl? Are you using sublime as an editor for some operations, e.g. git commit?

0 Likes

#5

Calling subl directly works just fine. I’ve narrowed it down further, and it seems like it isn’t an issue with Sublime Text. I think the problem is with the open command, as that’s what’s used by the patch script I’m using.

Sorry for the bother. Thanks!

0 Likes