tmux: use session name as kitty tab title, with @host over SSH

This commit is contained in:
Anton Volnuhin 2026-06-12 01:12:04 +03:00
parent a967a4981e
commit c6159eb278

View File

@ -87,6 +87,9 @@ setw -g automatic-rename on # rename window to reflect current program
set -g renumber-windows on # renumber windows when a window is closed set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title set -g set-titles on # set terminal title
# Title = session name (shown as kitty tab title); append @host when the
# session is attached over SSH, e.g. "reviews@mini".
set -g set-titles-string "#{?SSH_CONNECTION,#S@#h,#S}"
set -g display-panes-time 800 # slightly longer pane indicators display time set -g display-panes-time 800 # slightly longer pane indicators display time
set -g display-time 1000 # slightly longer status messages display time set -g display-time 1000 # slightly longer status messages display time