Explorar o código

Update tmux configuration.

Emmanuel Bouthenot %!s(int64=13) %!d(string=hai) anos
pai
achega
01058fbb37
Modificáronse 1 ficheiros con 12 adicións e 1 borrados
  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
+