summaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
Diffstat (limited to 'tmux')
-rw-r--r--tmux20
1 files changed, 18 insertions, 2 deletions
diff --git a/tmux b/tmux
index ace9138..a0a71a4 100644
--- a/tmux
+++ b/tmux
@@ -28,11 +28,27 @@ bind -n M-Down select-pane -D
bind -n S-Left previous-window
bind -n S-Right next-window
+# vim-like copy/paste
+setw -g mode-keys vi
+
+bind [ copy-mode
+bind ] paste-buffer
+
+# copy/paste with xclip
+bind-key -Tcopy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
+
+# buffer
+bind Space choose-buffer
+
# Reload tmux config
bind r source-file ~/.tmux.conf
# status line text
set -g status-left-length 30
-set -g status-left '#(whoami)@#(hostname) : '
-set -g status-right '#(cut -d " " -f 1-3 /proc/loadavg) ~%Y.%m.%d..%H.%M'
+set -g status-left ' #(whoami)@#(hostname) | '
+set -g status-right '~%Y.%m.%d..%H.%M '
+
+# white-ish background with dark-grey text
+set -g status-style bg=colour7
+set -ag status-style fg=colour8