Browse Source

Update tmux configuration.

Emmanuel Bouthenot 13 years ago
parent
commit
01058fbb37
1 changed files with 12 additions and 1 deletions
  1. 12 1
      .tmux.conf

+ 12 - 1
.tmux.conf

@@ -14,6 +14,8 @@
 set -g default-terminal "screen-256color"
 set -g history-limit 1000
 set -g update-environment "DISPLAY WINDOWID SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
+#set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+setw -g mode-mouse on
 
 ### Backport some “screen” setting ###
 #
@@ -45,6 +47,11 @@ bind a send-prefix
 #
 bind h split-window
 bind v split-window -h
+#
+# enter copy mode
+#
+unbind [
+bind * copy-mode
 
 ### Decoration settings ###
 #
@@ -53,10 +60,14 @@ bind v split-window -h
 set -g status-bg black
 set -g status-fg white
 #set -g set-titles-string '#H #S #I #P #W #T' # window number,program name,active (or not)
+set-window-option -g window-status-current-fg red
+set-window-option -g window-status-current-bg default
 #
 # status bar settings
 #
 set -g status-interval 60
 set -g status-left '#[fg=green]#(hostname)#[default] '
-set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=green]%H:%M %d-%m-%Y#[default] (#S)'
+set -g status-right "#[fg=yellow]up: #(uptime|cut -d ' ' -f 4-| sed 's/ days, /d,/ ; s/ load average: /load: /')#[default] #[fg=green]%H:%M %d-%m-%Y#[default] (#S)"
+set -g status-right-length 70
+