Sublime Forum

Broken tab completion macOS Zsh Subl

#1

I’ve had zsh set up on my Mac since the default switch over a while back. The subl command used to work fine, where I could tab-complete filenames I want to open in the editor.

A few months ago, I noticed that tab completion is broken.

When I try to tab complete a filename with the subl command I get this output:

√ bret.io % subl RE
(eval):1: _subl: function definition file not found

Here are my relevant dot files that I use to set up zsh completions on my system.

Is anyone else seeing this problem? Do you see an error in my config? Thanks for any ideas.

0 Likes

#2

I figured it out with some help on discord.

The system zsh completions had a proper _sublimetext completion file in /usr/share/zsh/5.9/functions, however it wasn’t getting loaded properly. I updated my zsh completions to work like this:

and it started working again.

0 Likes