Better status for tmux windows and panes.
dblume

dblume commited on 2021-11-21 12:10:25
Showing 1 changed files, with 2 additions and 2 deletions.

... ...
@@ -44,8 +44,8 @@ setw -g automatic-rename off
44 44
 setw -g aggressive-resize
45 45
 set -g allow-rename on
46 46
 #setw -g window-status-current-format '#[fg=yellow]#I:#F:#T:.../#{b:pane_current_path}#[default]'
47
-setw -g window-status-current-format '#[fg=yellow]#{s/\*//:window_flags} #{s\/home/dblume\~\:pane_current_path}#[default]'
48
-setw -g window-status-format '#I:#F:#W'
47
+setw -g window-status-current-format '#([ #{session_windows} -gt 1 ] && echo #I:)#[fg=yellow]#{?window_zoomed_flag,Z:,}#{s\/home/dblume\~\:pane_current_path}#[default]#([ #{session_windows} -gt 1 ] && echo :#W)'
48
+setw -g window-status-format '#[fg=colour241]#I:#W#[default]'
49 49
 
50 50
 # prefix, C-Arrow doesn't work from PuTTY. Needs TERM to be xterm
51 51
 set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"
52 52