Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 602
Mahmoud Zalt Avatar asked Apr 10 '15 01:04

Mahmoud Zalt


2 Answers

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.

like image 69
Ziad Alame Avatar answered Oct 05 '22 04:10

Ziad Alame


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.

like image 36
fredrik Avatar answered Oct 05 '22 04:10

fredrik