From d116936c7e6fba8084cc692299a89fcdec182a72 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Tue, 8 Aug 2017 17:29:24 +0800 Subject: [PATCH] Tmux - change status bg according to the platforms --- tmux.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index c1164f8..42cf347 100755 --- a/tmux.conf +++ b/tmux.conf @@ -13,11 +13,13 @@ bind-key 'C-\' send-prefix set -g status-fg white #set -g status-bg blue -set -g status-bg black +#set -g status-bg black set-window-option -g window-status-current-bg red #set-option -g status-right "#[fg=green]#T #[fg=yellow,bold]#(date '+%Y-%m-%d %I:%M%P %a') " #set-option -g status-right "#[fg=green]#(whoami) #[fg=yellow,bold]#(date '+%Y-%m-%d') #[fg=red,bold]#(date '+%I:%M') #[fg=yellow,bold]#(date '+%p %a') " set-option -g status-right "#[fg=yellow]#(date '+%Y-%m-%d') #[fg=red]#(date '+%I:%M') #[fg=yellow]#(date '+%p %a') " +if-shell 'test "$(uname)" = "Darwin"' 'set -g status-bg black' +if-shell 'test "$(uname)" = "Linux"' 'set -g status-bg blue' ## automatic change the window title #set-option -g set-titles on -- 2.11.0