macOS 上的 tmux 在 iterm2 或终端中打开时退出

mea*_*ape 8 tmux iterm2

我无法tmux在 iTerm2 或终端中使用空的tmux.conf. 从正在运行的会话中拆分窗口也会失败。(并不是说我不再有任何正在运行的会话。)在 iTerm2 中,我得到三种可能的响应之一;终端只有两个。(我还尝试了 tmux 附带的示例 tmux.conf。相同的结果)。

在 iTerm2 中

[jayed@merlot ~/jank]  tmux -f ./none.conf                                                                                                                     
[exited]
[jayed@merlot ~/jank]  Term2 3.4.15
                                                                                                                            
[jayed@merlot ~/jank]  tmux -f ./none.conf                                                                                                                      
[exited]

[jayed@merlot ~/jank]  tmux -f ./none.conf                                                                                                                      
^[[>0;95;0c^[P>|iTerm2 3.4.15^[\[exited]
Run Code Online (Sandbox Code Playgroud)

在航站楼

[jayed@merlot ~/jank]  tmux -f ./none.conf                                                                    
[exited]
                                                                                                      
[jayed@merlot ~/jank]  tmux -f ./none.conf                                                                    
^[[>1;95;0c[exited]

Run Code Online (Sandbox Code Playgroud)

mea*_*ape 6

我会留下这个也许可以帮助别人。

这与 2022 年 6 月 9 日推送到自制程序的 tmux 3.3a 升级有关。回滚到 3.3 解决了我的问题。

我不知道具体问题是什么。

  • 我会将其作为错误报告提交。这里的任何人都做不到任何有意义的事情,这是应该修复的事情,因此这个问题/答案从长远来看不会有用。 (4认同)
  • 就我而言,即使从源代码编译 v3.3 后它仍然失败,我没有意识到 tmux 服务器已经在运行,但我与它分离了。我用“tmux Kill-server”杀死了它,并再次尝试了 tmux,它成功了。 (2认同)

OzB*_*rry 6

我将重申 @mauricio-poppe 提到的。我在brew upgradetmux 运行时做了一段时间,重新打开 tmux 会导致Term2 3.4.15在我的提示符中出现一些响铃字符和输出。

为了解决这个问题,我跑了:

tmux kill-server
brew reinstall tmux
Run Code Online (Sandbox Code Playgroud)

现在 tmux 可以按预期工作了。

我猜测构建/安装需要访问 tmux 仍在运行时锁定打开的内容。