X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;f=tmux.conf;h=625b3c55ccea2472584c7ea3e788997528761e38;hb=965f5b3e702f12ec3a1b06c59d3a65cc58b474b6;hp=61c2c15d77d0ff3a7b520c38b88fbb23f54f295e;hpb=c94429584e2dae7144946fd187ccf037d9547cdd;p=dotfiles.git diff --git a/tmux.conf b/tmux.conf index 61c2c15..625b3c5 100755 --- a/tmux.conf +++ b/tmux.conf @@ -1,3 +1,9 @@ +############################################### +# +# dependencies: +# brew install reattach-to-user-namespace # for macvim + + #set -g prefix ^O #unbind ^b #bind o send-prefix @@ -7,11 +13,14 @@ 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=green]#(hostname)#[fg=white]] #[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=red]#(hostname) #[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' ## automatic change the window title #set-option -g set-titles on