commit 77ff37afc073ec547af0f2876bf937d780312ec8 parent 96111432741c79bb4df76fd4e8d0463be174ad3e Author: Nirmal Kumar R <tildezero@gmail.com> Date: Sun, 14 Apr 2024 20:04:09 +0530 Add initial tmux config Diffstat:
A | tmuxconf | | | 39 | +++++++++++++++++++++++++++++++++++++++ |
1 file changed, 39 insertions(+), 0 deletions(-)
diff --git a/tmuxconf b/tmuxconf @@ -0,0 +1,39 @@ +#Prefix is Ctrl-a +set -g prefix C-a +bind C-a send-prefix +unbind C-b + +set -sg escape-time 1 +set -g base-index 1 +setw -g pane-base-index 1 + +#Mouse works as expected +set -g mouse on + +setw -g monitor-activity on +set -g visual-activity on + +set -g mode-keys vi +set -g history-limit 10000 + +# easy-to-remember split pane commands +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# moving between panes with vim movement keys +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# moving between windows with vim movement keys +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ + +# resize panes with vim movement keys +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