From ef48859adcf3460ceb04f862c20385bab1f0b0b1 Mon Sep 17 00:00:00 2001 From: Nico Date: Sat, 3 May 2025 16:15:57 +1000 Subject: [PATCH] tmux: add initial tmux configuration --- stow/.config/tmux/tmux.conf | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 stow/.config/tmux/tmux.conf diff --git a/stow/.config/tmux/tmux.conf b/stow/.config/tmux/tmux.conf new file mode 100644 index 0000000..0ad9555 --- /dev/null +++ b/stow/.config/tmux/tmux.conf @@ -0,0 +1,22 @@ +# remap prefix from 'C-b' to 'C-a' +unbind C-b +set-option -g prefix C-a +bind-key C-a send-prefix + +# vim keys +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# start ajacent terminals with same path +bind c new-window -c "#{pane_current_path}" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" + +# set variables +set -g mouse on +set -g history-limit 100000 + +set -g base-index 1 +setw -g pane-base-index 1