From cc299641e5ccb1b8d9a3f62fdb8edf6db50e3906 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 22 May 2023 13:49:37 +0200 Subject: [PATCH] tmux: Remove code redundancy with hidden variable --- .config/tmux/tmux.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index e910106..3aece4c 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -189,10 +189,12 @@ set -g status-left "#{prefix_highlight}" set -g status-justify centre +%hidden window_status='#{?window_zoomed_flag,#[underscore],}#I #W' set -g window-status-current-format \ - "#[fg=#{@accent_color} bold]#{?window_zoomed_flag,#[underscore],}#I #W" + "#[fg=#{@accent_color} bold]"$window_status set -g window-status-format \ - "#[fg=#{@ui_color}]#{?window_zoomed_flag,#[underscore],}#I #W" + "#[fg=#{@ui_color}]"$window_status +setenv -ghu window_status # Create a key-table which self-inserts all keys that are bound in the root key # table. (C-h for example is sometimes needed as backspace sequence)