From 8d0dee44f8c2aef9782a1930181ea935fb64114a Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 8 Dec 2019 02:53:03 +0100 Subject: [PATCH] added plugin manager support to tmux * ...and some plugins * increased scrollback to 100k lines (still not enough sometimes) * set default terminal variable to something somewhat less obscure --- .tmux.conf | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index af8cae0..a8c916a 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -7,7 +7,7 @@ set-option -g set-titles on set-option -g allow-rename on set -g status-keys vi -set -g history-limit 10000 +set -g history-limit 100000 setw -g mouse on setw -g mode-keys vi @@ -39,7 +39,7 @@ bind r source-file ~/.tmux.conf \; display-message "Config reloaded..." # Colors # How to use true colors in vim under tmux? #1246 for 2.6 and higher # https://github.com/tmux/tmux/issues/1246: -set -g default-terminal "tmux-256color" +set -g default-terminal "xterm-256color" set -ga terminal-overrides ",*256col*:Tc" # THEME @@ -50,5 +50,14 @@ setw -g status-bg colour237 setw -g status-fg colour39 set -g status-interval 60 set -g status-left-length 30 -set -g status-left '#[fg=green,bold](#S) #(whoami) ' +set -g status-left '#[fg=green,bold](#S) '# #(whoami) ' set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%a %H:%M#[default]' + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-resurrect' + +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run -b '~/.tmux/plugins/tpm/tpm'