From 9536eb7be7c32ee135578647a0276514a6aa54fc Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sun, 15 Oct 2017 18:12:49 +0800 Subject: [PATCH] tmux - add IP on the status --- tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 42cf347..4bd229e 100755 --- a/tmux.conf +++ b/tmux.conf @@ -17,7 +17,7 @@ set -g status-fg white 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 "#[fg=red]#(echo $SSH_CONNECTION | awk '{print $3}') #[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' -- 2.11.0