Sublime Forum

[OSX] CLI tool stopped working inside tmux

#1

Since build 3067, the subl command stopped working when used inside Tmux (a popular terminal multiplexer, like GNU Screen). It opens Sublime but ignores any file/folder arguments, such as subl . or subl example.txt.

I’m using OSX Yosemite and Sublime Text 3 build 3069.

0 Likes

#2

I am running into the same issue. Is there a workaround for this?

Also I should note that I have tried access the command directly from the app bundle:
/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl filename

0 Likes

#3
0 Likes

#4

Thanks, I followed your link chain to the workaround: github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

I am already using this:
set-option -g default-command “reattach-to-user-namespace -l bash”

but still seeing the same behavior.

0 Likes

#5

Did you restart all instances of tmux?

0 Likes

#6

Yes, actually I just figured it out:

So when I ran this command directly:

reattach-to-user-namespace /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl filename

I got this message:

warning: reattach-to-user-namespace: unsupported new OS, trying as if it were 10.6-10.8
warning: _vprocmgr_move_subset_to_user failed
warning: reattach-to-user-namespace: unable to reattach

So I figured reattach-to-user-namespace must be out of date. To fix I did a:

brew uninstall reattach-to-user-namespace
brew install reattach-to-user-namespace

And it started working.

Thanks!

0 Likes