From 20ada3229a944020a398f79cf92d1a1a4694ba4e Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 31 Jul 2019 08:25:05 -0700 Subject: improve tmux --- tmux | 20 ++++++++++++++++++-- 1 file 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 -- cgit v1.2.3