From 3282358d9e8ca250b1818718de12cc79e18c975f Mon Sep 17 00:00:00 2001 From: David Ibia Date: Sat, 3 Oct 2026 16:27:47 +0100 Subject: [PATCH] feat(tmux): enable RGB for xterm terminals, push session name to the title, pin the TPM path --- .tmux-server.conf | 2 +- .tmux.conf | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.tmux-server.conf b/.tmux-server.conf index 7ae8652..52cd30a 100644 --- a/.tmux-server.conf +++ b/.tmux-server.conf @@ -8,7 +8,7 @@ # ============================================================================= set -g mouse on -set-option -a terminal-features 'XXX:RGB' +set-option -a terminal-features 'xterm*:RGB' set-option -sg escape-time 10 set-option -g focus-events on set-window-option -g mode-keys vi diff --git a/.tmux.conf b/.tmux.conf index b526e06..87f2aa4 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,6 +1,6 @@ set -g mouse on bind r source-file ~/.tmux.conf -set-option -a terminal-features 'XXX:RGB' +set-option -a terminal-features 'xterm*:RGB' set-option -sg escape-time 10 set-option -g focus-events on set-window-option -g mode-keys vi @@ -58,6 +58,13 @@ bind -r h resize-pane -L 5 # Setting up pane minimize/maximize with m bind -r m resize-pane -Z +# Push tmux window/session info to the terminal title +set -g set-titles on +set -g set-titles-string "#{session_name}" + +# Set plugin manager path before loading plugins +set-environment -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.tmux/plugins" + # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible'