-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
49 lines (38 loc) · 1.56 KB
/
tmux.conf
File metadata and controls
49 lines (38 loc) · 1.56 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
# Claude Code optimized tmux config
# Copy to ~/.tmux.conf
#
# Key feature: mouse scroll works naturally — wheel up enters copy mode
# automatically. Your viewport is completely decoupled from Claude Code's
# cursor repositioning. No more scroll jumping.
# --- Core scroll fix ---
# Mouse scroll works naturally — wheel up enters copy mode automatically
set -g mouse on
# 100K line scrollback (default 2000 is way too small for Claude sessions)
set -g history-limit 100000
# --- Performance ---
# Don't wait for escape sequences (instant response to keybinds)
set -sg escape-time 0
# Faster key repeat
set -g repeat-time 200
# --- Display ---
# True color support
set -g default-terminal "screen-256color"
set -sa terminal-features ",xterm-256color:RGB"
# Status bar — minimal, shows pane count and time
set -g status-style bg=colour235,fg=colour248
set -g status-left "#[fg=colour39][tmux] "
set -g status-right "#[fg=colour243]panes:#{window_panes} | %H:%M"
set -g status-left-length 20
# Active pane border highlight (for split panes)
set -g pane-active-border-style fg=colour39
set -g pane-border-style fg=colour238
# --- Quality of life ---
# Ctrl+B then | for vertical split, - for horizontal (more intuitive)
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# New windows/panes start in current directory
bind c new-window -c "#{pane_current_path}"
# Ctrl+B then r to reload config
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
# Vi-style copy mode (more natural scrolling with j/k)
setw -g mode-keys vi