Tmux窗口或窗格名称在GNOME终端中不会更改

tom*_*nez 5 gnome-terminal tmux fedora-25

使用Fedora 25和GNOME终端.我在Ubuntu中使用了Tmux几年,并使用了很长的自定义.tmux.conf文件.最近在Fedora中安装了Tmux和Tmuxinator.

当我打开终端时.我看到标题设置为tom@localhost:~.当我创建一个新的Tmux会话,如tmux new -s panes.窗格的标题仍然是tom@localhost:~.

在Tmux会话中.当我打开一个名称console如此的新窗口时new-window -n console.标题不会改变console并继续说tom@localhost:~.

我想也许tmux没有覆盖标题所以我把它添加到tmux.conf文件中:

set-option -g set-titles on
set -g terminal-overrides "xterm*:XT:smcup@:rmcup@"
Run Code Online (Sandbox Code Playgroud)

那仍然没有做任何事情.

终端设置.我已经Profile/Command/When terminal commands set their own titles开始了Replace initial title.

我无法弄清楚这一点.我在这做错了什么?

tom*_*nez 0

我不太确定它为什么有效。但这解决了我的问题。

在文件内.tmux.conf我添加了行set-option -g allow-rename off. 在文件的顶部我有一行set -g default -terminal "xterm"。我删除了这一行。