summaryrefslogtreecommitdiff
path: root/tmux/.config
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-09-06 12:16:02 +0100
committerNaz <ndpm13@ch-naseem.com>2025-09-06 12:19:55 +0100
commita7f7805f6ce5c84802e2cf90e4e31919558d4a46 (patch)
treefd32ddf0f84557e23f2e901377969ea00068b313 /tmux/.config
parent7b249d054535ebd0661cd8e2b501a3897d03e2cf (diff)
✨feat: add tmux configuration files
Diffstat (limited to 'tmux/.config')
-rw-r--r--tmux/.config/tmux/tmux.conf45
1 files changed, 45 insertions, 0 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf
new file mode 100644
index 0000000..fc74218
--- /dev/null
+++ b/tmux/.config/tmux/tmux.conf
@@ -0,0 +1,45 @@
+set -g mouse on
+
+set -g base-index 1
+set -g pane-base-index 1
+set-window-option -g pane-base-index 1
+set-option -g renumber-windows on
+
+unbind '%'
+unbind '"'
+
+bind s split-window -v -c "#{pane_current_path}"
+bind v split-window -h -c "#{pane_current_path}"
+
+set-option -as terminal-overrides ",xterm*:RGB"
+
+set -g status-position top
+
+unbind C-b
+set -g prefix C-Space
+
+bind-key -T copy-mode-vi v send-keys -X begin-selection
+bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
+
+bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
+
+bind S choose-session
+
+set-window-option -g mode-keys vi
+
+bind l next-window
+bind h previous-window
+
+bind -n M-k resize-pane -U 1
+bind -n M-j resize-pane -D 1
+bind -n M-h resize-pane -L 2
+bind -n M-l resize-pane -R 2
+
+set -g @plugin 'tmux-plugins/tpm'
+set -g @plugin 'tmux-plugins/tmux-sensible'
+set -g @plugin 'christoomey/vim-tmux-navigator'
+set -g @plugin 'tmux-plugins/tmux-yank'
+set -g @plugin 'ndpm13/tmux-gruvbox-truecolor'
+
+# Initialize TMUX plugin manager.
+run '~/.tmux/plugins/tpm/tpm'