
毎日、たくさんの を起動しますurxvtc -e tmux
。
urxvt X ウィンドウ タイトル ("tmux") を、 で設定された現在の tmux セッション名で上書きする方法を探しています:rename-session session_name
。
皆さんの中にそれを達成した人はいますか?
ありがとう !
答え1
~/.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