Sublime Forum

Error: Unable to find application named 'subl'

#1

I recently installed sublime as my primary text editor. I am trying to install the CLI tool and I keep running into issues.

I have successfully ran:
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/subl

But now, when I am trying to execute subl in the CLI, I get the following error:

(base) {14:15}~/dev/sublime_lab ➭ subl .
Unable to find application named ‘subl’

How can I fix this?

0 Likes

#2

What shell are you using? Is /use/local/bin in the PATH?

0 Likes

#3

I use zsh Is there something else I need to include in /use/local/bin?

0 Likes

#4

If found the issue. In my ./zshrc it had an alias that was producing the error.

I changed:
alias subl=‘open -a subl’

to
alias subl="/usr/local/bin/subl"

It aint cheatin’ if it works!

0 Likes