diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-09-07 17:54:53 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-09-07 17:54:53 +0530 |
| commit | 7b3e2e0771481caa2bd393a51a422810f3bea902 (patch) | |
| tree | b2bd6f9eaf0ac6e361c8ac88d69afd9260cdbdb2 /tmux | |
| parent | df7aec0ccf8560e6c083cc84d9c9b94e937086b6 (diff) | |
tmux
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/tmux.conf | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..85aa047 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,39 @@ +set-option -sa terminal-overrides ",xterm*:Tc" +set -g mouse on + +set -g base-index 1 +set -g pane-base-index 1 +set-window-option -g pane-base-index 1 +set-window-option -g mode-keys vi +set-option -g renumber-windows on + +unbind C-b +set -g prefix C-Space +bind C-Space send-prefix + +unbind n +unbind p +unbind c +bind -n M-Right next-window +bind -n M-Left previous-window +bind-key c new-window + +bind-key -T copy-mode-vi v send-keys -X begin-selection +bind-key -T copy-mode-vi C-v send-keys -X rectangle-selection +bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel + +unbind '"' +unbind '%' +bind '\' split-window -h -c "#{pane_current_path}" +bind '|' split-window -v -c "#{pane_current_path}" + +bind-key C-l send-keys C-l \; clear-history + +# Move between panes with Ctrl+Shift+h/j/k/l +bind -n M-H select-pane -L +bind -n M-J select-pane -D +bind -n M-K select-pane -U +bind -n M-L select-pane -R + +# Rename current window with Alt+Shift+R +bind -n M-R command-prompt -I "#W" "rename-window '%%'" |
