add script of wifif config for raspberry pi
[dotfiles.git] / tmux.conf
index c1164f8..ee40011 100755 (executable)
--- 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') "
+set-option -g status-right-length 60
+set-option -g  status-right "#[fg=yellow]#h #[fg=red]#(echo $TMUX_IP)  #[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' 'set -g        status-bg blue' 
 
 ## automatic change the window title 
 #set-option -g set-titles      on