tmux: color hostname and active tab by host
Adds a blue accent for prosrvdemadev01 in the status bar (hostname and selected window name), keeping the existing color as the default for all other hosts, via tmux's native host_short format conditional. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -163,12 +163,12 @@ set-window-option -g window-status-activity-style none
|
||||
set-window-option -g window-status-separator ''
|
||||
|
||||
set -g status-left "#[fg=$COL_FG,bg=$COL_BG_DARK] #S #[fg=$COL_BG_DARK,bg=$COL_BG_VERY_DARK] "
|
||||
set -g status-right "#[fg=color230] #h "
|
||||
set -g status-right "#{?#{==:#{host_short},prosrvdemadev01},#[fg=colour4],#[fg=color230]} #h "
|
||||
|
||||
activity_color="#{?window_activity_flag,colour1,$COL_FG}"
|
||||
status_color="#{?window_silence_flag,colour3,${activity_color}}"
|
||||
|
||||
set-window-option -g window-status-current-format "#[fg=$COL_BG_DARK] #{window_index} #[fg=color230]#{window_name} #[fg=$COL_BG_MEDIUM]"
|
||||
set-window-option -g window-status-current-format "#[fg=$COL_BG_DARK] #{window_index} #{?#{==:#{host_short},prosrvdemadev01},#[fg=colour4],#[fg=color230]}#{window_name} #[fg=$COL_BG_MEDIUM]"
|
||||
set-window-option -g window-status-format "#[fg=$COL_BG_DARK,bg=$COL_BG_VERY_DARK]#[fg=${status_color},bg=$COL_BG_DARK] #{window_index} #{window_name} #[fg=$COL_BG_DARK,bg=$COL_BG_VERY_DARK]"
|
||||
|
||||
set -g pane-active-border-style bg=default,fg=color240
|
||||
|
||||
Reference in New Issue
Block a user