-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
77 lines (62 loc) · 3.83 KB
/
tmux.conf
File metadata and controls
77 lines (62 loc) · 3.83 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# ─────────────────────────────────────────────────────────────
# TMUX Configuration - Catppuccin Mocha Theme
# ─────────────────────────────────────────────────────────────
new-session
# ─── Core Settings ───────────────────────────────────────────
set -g history-limit 50000
set -g mouse on
set -sg escape-time 0 # No delay for escape key
set -g focus-events on # Enable focus events for vim
# ─── Indexing ────────────────────────────────────────────────
set -g base-index 1 # Start windows at 1
setw -g pane-base-index 1 # Start panes at 1
set -g renumber-windows on # Renumber windows on close
# ─── Colors & Terminal ───────────────────────────────────────
set -g default-terminal "tmux-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
set -g allow-passthrough on
# ─── Vi Mode ─────────────────────────────────────────────────
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy"
bind -T copy-mode-vi Escape send -X cancel
# ─── Pane Navigation (vim-style) ─────────────────────────────
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# ─── Pane Splitting ──────────────────────────────────────────
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
# ─── Window Navigation ───────────────────────────────────────
bind -n M-Left previous-window # Alt+Left
bind -n M-Right next-window # Alt+Right
# ─── Reload Config ───────────────────────────────────────────
bind r source-file ~/.tmux.conf \; display "Config reloaded!"
# ─── Status Bar (Catppuccin Mocha) ───────────────────────────
set -g status-position bottom
set -g status-style 'bg=#1e1e2e fg=#cdd6f4'
set -g status-left '#[fg=#89b4fa,bold][#S] '
set -g status-left-length 20
set -g status-right '#[fg=#a6adc8]%Y-%m-%d %H:%M '
set -g status-right-length 50
# Window status
setw -g window-status-current-style 'fg=#f5c2e7 bold'
setw -g window-status-current-format ' #I:#W#F '
setw -g window-status-style 'fg=#6c7086'
setw -g window-status-format ' #I:#W#F '
# ─── Pane Borders ────────────────────────────────────────────
set -g pane-border-style 'fg=#313244'
set -g pane-active-border-style 'fg=#89b4fa'
# ─── TPM (Plugin Manager) ────────────────────────────────────
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Resurrect settings
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
# Initialize TPM (keep at bottom)
run '~/.tmux/plugins/tpm/tpm'