aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirmal Kumar R <tildezero@gmail.com>2026-05-31 13:28:36 +0530
committerNirmal Kumar R <tildezero@gmail.com>2026-05-31 13:28:36 +0530
commit8de72f3c294e841ec0f3a4f03b4d1b14699a0b7d (patch)
treeb109c25985cc2568b8ea4b648be0052ba9820686
parent0654e4d383b89cceda76547d1250ab38461a7b59 (diff)
Add initial tmux config
-rw-r--r--tmuxconf39
1 files changed, 39 insertions, 0 deletions
diff --git a/tmuxconf b/tmuxconf
new file mode 100644
index 0000000..4c26f2e
--- /dev/null
+++ 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