summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-07-31 08:25:05 -0700
committerBen Sima <ben@bsima.me>2019-07-31 08:25:05 -0700
commit20ada3229a944020a398f79cf92d1a1a4694ba4e (patch)
treee98e87992133cc9370a5271e06ecb98bbc48a628
parent5ef29048f1adb6427bf46942817bf8e6df63d5cf (diff)
improve 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