tmux: add initial tmux configuration

This commit is contained in:
Nico 2025-05-03 16:15:57 +10:00
parent 939234c89e
commit ef48859adc

View file

@ -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