From ce1cc606cde4b2e5f1e6985cfdaaf1bdb80dc5b6 Mon Sep 17 00:00:00 2001 From: Nathan Steel Date: Sat, 31 Jul 2021 15:13:21 +0100 Subject: [PATCH] Add a .tmux.conf file for tmux - If this being added use :source ~/.tmux.conf - After this ctrl+b z --- .tmux.conf | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..d76cd75 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,38 @@ +# Bind r to reload the source +bind r source ~/.tmux.conf + +# Remove ESC moving panes, etc +set -s escape-time 0 + +# Vim binding for pane switching (needs to take multiple inputs tho) +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# switch panes using CRTL+hjkl +bind -n C-h select-pane -L +bind -n C-j select-pane -D +bind -n C-k select-pane -U +bind -n C-l select-pane -R + +# Resize Panes with CTRL+Shift+HJKL (or just caps) +#bind -n C-H resize-pane -L 2 +#bind -n C-J resize-pane -D 2 +#bind -n C-K resize-pane -U 2 +#bind -n C-L resize-pane -R 2 + +# Zoom into the current pane +bind-key z resize-pane -Z +bind -n C-z resize-pane -Z + +# Enable mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +# Disable auto renames +set-option -g allow-rename off + + +# Popup Session +#bind -n M-g display-popup -E "tmux new-session -A -s scratch" +