From f54e5add2e63e5213fb95f0da58c3d6e287fe6fd Mon Sep 17 00:00:00 2001 From: Nevin Valsaraj Date: Tue, 21 Jun 2022 19:55:44 -0700 Subject: [PATCH] Add TPM to manage plugins, add plugins for defaults and navigation - Add Tmux Plugin Manager - Add plugin for sane defaults - Add plugin for pane navigation - Replace `set-option` with `set` shorthand --- tmux/.tmux.conf | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 2b6d890..2f5f51d 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,21 +1,28 @@ -# Remap prefix from C-b to C-\ +# Remap prefix from C-b to ` unbind-key C-b -set-option -g prefix 'C-\' -bind-key 'C-\' send-prefix +set -g prefix '`' +bind-key '`' send-prefix # Easy reload config file bind R source-file ~/.tmux.conf \; display-message "Reloaded!" # 256-color terminal -set-option -g default-terminal "tmux-256color" +set -g default-terminal "tmux-256color" # Add truecolor support (tmux info | grep Tc) -set-option -ga terminal-overrides ",xterm-256color:Tc" +set -ga terminal-overrides ",tmux-256color:Tc" # Enable mouse-control set -g mouse on # Configure status bar # -set-option -g status-style fg=black,bg=white -set-option -g status-position bottom \ No newline at end of file +set -g status-style fg=black,bg=white + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-pain-control' + +if "test ! -d ~/.tmux/plugins/tpm" \ + "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" + \ No newline at end of file