From f29eecfc6069c80745e18a38a5b75cfbe44d5a18 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Sat, 3 Dec 2022 00:29:49 +0100 Subject: [PATCH] Update '.tmux.conf' --- .tmux.conf | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index a5f9a5f..d72cd99 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,11 +1,17 @@ +# tmux theme +source-file "${HOME}/.tmuxtheme" + # split panes using | and - unbind '"' unbind % -bind | split-window -h -bind - split-window -v +bind | split-window -h -c "#{pane_current_path}" # -c openes it in the current directory +bind - split-window -v -c "#{pane_current_path}" + +# History limit increase +set -g history-limit 50000 # reload config -bind r source-file ~/.tmux.conf +bind C-r source-file ~/.tmux.conf \; display "Config reloaded!" # switch panes using Alt-arrow without prefix bind -n M-Left select-pane -L @@ -13,5 +19,25 @@ bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D +# vim style switch pane +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +bind -r H resize-pane -L 5 +bind -r J resize-pane -D 5 +bind -r K resize-pane -U 5 +bind -r L resize-pane -R 5 + # Enable mouse control (clickable windows, panes, resizable panes) set -g mouse on + +# Fix numbering for easy switching +set -g base-index 1 +setw -g pane-base-index 1 +set -g renumber-windows on + +# Timeout for display messages (in milliseconds) +set -g display-time 1000 +