Deixe o tmux definir o título da janela urxvt de acordo com o nome da sessão

Deixe o tmux definir o título da janela urxvt de acordo com o nome da sessão

Todos os dias eu lanço um monte de arquivos urxvtc -e tmux.

Estou tentando encontrar uma maneira de substituir o título da janela urxvt X ("tmux") pelo nome da sessão tmux atual definido via :rename-session session_name.

Algum de vocês conseguiu isso ??

Obrigado !

Responder1

Tente adicionar o seguinte ao seu arquivo ~/.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

informação relacionada