-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_tmux.conf
More file actions
45 lines (36 loc) · 1.15 KB
/
dot_tmux.conf
File metadata and controls
45 lines (36 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# --- General Settings ---
# Change prefix from 'C-b' to '`' (backtick)
unbind C-b
set -g prefix `
bind-key ` send-prefix
# Start windows and panes at 1, not 0 (matches keyboard row)
set -g base-index 1
setw -g pane-base-index 1
# Enable mouse control
set -g mouse on
# --- Key Bindings ---
# Switch panes using prefix + h/j/k/l
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Copy mode settings (Vim style)
setw -g mode-keys vi
bind-key -T copy-mode-vi s send-keys -X halfpage-up
bind-key -T copy-mode-vi d send-keys -X halfpage-down
# Reload config file
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
# --- Terminal & Appearance ---
set -g default-terminal "screen-256color"
set -g status-bg black
set -g status-fg "#f8d9b4"
# Fixes for Vim (suggested by :checkhealth)
set-option -sg escape-time 10
set-option -ga terminal-overrides ',XXX:Tc'
# --- Plugins (TPM) ---
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (Keep this at the very bottom)
run '~/.tmux/plugins/tpm/tpm'