forked from AI-Engineer-Skool/zen-agentic-engineer-config
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
61 lines (52 loc) · 2 KB
/
tmux.conf
File metadata and controls
61 lines (52 loc) · 2 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
# agentic-config tmux configuration
# Source of truth: ~/src/agentic-config/tmux.conf
# Linked from ~/.tmux.conf by install.sh
# --- core ---
set -g mouse on
set -s set-clipboard on
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set -g history-limit 50000
set -g focus-events on
# --- 0-based indexing for windows and panes ---
set -g base-index 0
setw -g pane-base-index 0
# --- subtle status bar (so the green copy-confirm banner actually pops) ---
set -g status-style "bg=colour236,fg=colour245"
set -g status-left-style "fg=colour245"
set -g status-right-style "fg=colour245"
setw -g window-status-style "fg=colour245"
setw -g window-status-current-style "fg=colour255,bold"
# --- 1.2s green confirmation banner ---
set -g display-time 1200
set -g message-style "bg=green,fg=black,bold"
# --- drag-select -> clipboard (via cross-platform bin/clip shim) + banner ---
bind-key -T copy-mode-vi MouseDragEnd1Pane \
send-keys -X copy-pipe-and-cancel "$HOME/src/agentic-config/bin/clip" \;\
display-message "✓ copied selection"
# --- double-click: select word + copy ---
bind-key -T root DoubleClick1Pane \
select-pane \;\
copy-mode -M \;\
send-keys -X select-word \;\
send-keys -X copy-pipe-and-cancel "$HOME/src/agentic-config/bin/clip" \;\
display-message "✓ copied word"
# --- triple-click: select line + copy ---
bind-key -T root TripleClick1Pane \
select-pane \;\
copy-mode -M \;\
send-keys -X select-line \;\
send-keys -X copy-pipe-and-cancel "$HOME/src/agentic-config/bin/clip" \;\
display-message "✓ copied line"
# --- smart scroll: WheelDown at bottom exits copy mode ---
bind-key -T copy-mode-vi WheelUpPane send-keys -X -N 3 scroll-up
bind-key -T copy-mode-vi WheelDownPane {
if -F "#{e|<=:#{scroll_position},1}" {
send-keys -X cancel
} {
send-keys -X -N 3 scroll-down
}
}
# --- pane border shows pane index + current command (helps identify the 4 claude panes) ---
set -g pane-border-status top
set -g pane-border-format " #{pane_index}: #{pane_current_command} "