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?

4

2 回答 2

3

我遇到过同样的问题。挖了一下,在SU上找到了这个答案。安装“重新附加”包装程序以允许访问 Mac OS X 粘贴板似乎可以解决问题。

于 2015-04-17T07:57:56.223 回答
3

这是因为 Tmux 没有对您系统的 root 访问权限。

它会为您打开 Sublime,但不会显示系统文件内容。

你需要先给它权限。

于 2015-07-09T23:12:39.847 回答