每天我都会推出一堆urxvtc -e tmux
.
我试图找到一种方法来覆盖 urxvt X 窗口标题(“tmux”),并通过:rename-session session_name
.
你们有人做到了吗??
谢谢 !
Jer*_*y W 13
尝试将以下内容添加到您的 ~/.tmux.conf 文件中。
# Turn on window titles
set -g set-titles on
# Set window title string
# #H Hostname of local host
# #I Current window index
# #P Current pane index
# #S Session name
# #T Current window title
# #W Current window name
# # A literal ‘#’
set -g set-titles-string '#S:#I.#P #W'
# Automatically set window title
setw -g automatic-rename
Run Code Online (Sandbox Code Playgroud)