From 2f9b498c0f8e7dd5055a8a2511553a81734c3cec Mon Sep 17 00:00:00 2001 From: Max Richter Date: Mon, 23 Aug 2021 14:05:39 +0200 Subject: [PATCH] feat: add tmux conf --- configs/.tmux.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 configs/.tmux.conf diff --git a/configs/.tmux.conf b/configs/.tmux.conf new file mode 100644 index 0000000..52bc08a --- /dev/null +++ b/configs/.tmux.conf @@ -0,0 +1,30 @@ +# remap prefix from 'C-b' to 'C-a' +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# reload config file (change file location to your the tmux.conf you want to use) +bind r source-file ~/.tmux.conf + +# switch panes using Alt-arrow without prefix +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + +# Enable mouse mode (tmux 2.1 and above) +set -g mouse on + +# Add some plugins + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'dracula/tmux' + +run '~/.tmux/plugins/tpm/tpm'