Opening sublime text 3 from a tmux session opens an empty file?
Asked Answered
M

2

7

Whenever I try to open any file from the terminal using sublime, for example: subl ~/.zshrc, it works fine BUT when I try to do the same thing from inside of a tmux session I get an empty blank file.

I saw many people asking related questions and blaming sublime, but what I just figured out is that it's not sublimes fault! it's the relation between sublime and tmux. so how can I fix this? does it requires some sort of permission or what?

Mankind answered 10/4, 2015 at 1:15 Comment(0)
E
3

This is because Tmux does not have the root access to your system.

It opens Sublime for you but it doesn't show you the system files content.

You need to give it permission first.

Easy answered 9/7, 2015 at 23:12 Comment(1)
How can I give it permission?Atory
B
3

I had the same issue. Dug around a bit and found this answer on SU. Installing the "Reattaching" Wrapper program to allow access to the Mac OS X pasteboard seems to solve the issue.

Banas answered 17/4, 2015 at 7:57 Comment(0)
E
3

This is because Tmux does not have the root access to your system.

It opens Sublime for you but it doesn't show you the system files content.

You need to give it permission first.

Easy answered 9/7, 2015 at 23:12 Comment(1)
How can I give it permission?Atory

© 2022 - 2024 — McMap. All rights reserved.