2017-06-26 46 views
5

使用Fedora 25和GNOME終端。我已經在Ubuntu中使用了Tmux幾年,並且使用了長定製的.tmux.conf文件。最近在Fedora中安裝了Tmux和Tmuxinator。GNOME終端中的Tmux窗口或窗格名稱不會更改

當我打開終端。我看到標題設置爲[email protected]:~。當我創建一個新的Tmux會話,如tmux new -s panes。窗格的標題仍然是[email protected]:~

在Tmux會話中。當我打開一個名爲console的新窗口就像這樣new-window -n console。標題不會更改爲console並且一直說[email protected]:~

我想,也許TMUX未覆蓋的標題,所以我說這個給tmux.conf文件:

set-option -g set-titles on 
set -g terminal-overrides "xterm*:XT:[email protected]:[email protected]" 

仍然無法做任何事情。

終端設置。我有Profile/Command/When terminal commands set their own titles設置爲Replace initial title

我無法弄清楚這一點。我在這裏做錯了什麼?

回答

0

我不完全確定它爲什麼有效。但是這解決了我的問題。

.tmux.conf文件裏面我添加了行set-option -g allow-rename off。在文件的頂部,我有行set -g default -terminal "xterm"。我刪除了這一行。