diff options
author | Ben Sima <ben@bsima.me> | 2019-07-31 08:25:05 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-07-31 08:25:05 -0700 |
commit | 20ada3229a944020a398f79cf92d1a1a4694ba4e (patch) | |
tree | e98e87992133cc9370a5271e06ecb98bbc48a628 | |
parent | 5ef29048f1adb6427bf46942817bf8e6df63d5cf (diff) |
improve tmux
-rw-r--r-- | tmux | 20 |
1 files changed, 18 insertions, 2 deletions
@@ -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 |