-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
53 lines (40 loc) · 1.5 KB
/
.tmux.conf
File metadata and controls
53 lines (40 loc) · 1.5 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
# True color settings
set -g default-terminal "$TERM"
set -ag terminal-overrides ",$TERM:Tc"
# From SSAGE recommended settings
# Enable mouse support
set -g mouse on
# Show pane ID and time in status bar
set -g status-right '#{pane_id} | %H:%M '
# Alternate screen on — required for textual TUI apps (trajectory viewer, textual, etc.)
# Modern neovim works fine with this on; screen clears on exit rather than staying visible
set-option -g alternate-screen on
# Enable vi mode for better copy/paste
set-window-option -g mode-keys vi
# Improved search and copy bindings
bind-key / copy-mode\; send-key ?
bind-key -T copy-mode-vi y \
send-key -X start-of-line\; \
send-key -X begin-selection\; \
send-key -X end-of-line\; \
send-key -X cursor-left\; \
send-key -X copy-selection-and-cancel\; \
paste-buffer
# set-option -g history-limit 5000
set-option -g history-limit 100000
unbind P
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S - ; save-buffer %1 ; delete-buffer'
unbind C-b
set -g prefix `
bind-key ` last-window
bind-key e send-prefix
# Claude Code: open in new named window at current path
bind-key C new-window -n "claude" -c "#{pane_current_path}" "claude"
# From JH to get a clean SSAGE state
bind-key -n C-l send-keys C-l \; send-keys -R \; clear-history
## For ctrl-a prefix
# http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
# remap prefix from 'C-b' to 'C-a'
# unbind C-b
# set-option -g prefix C-a
# bind-key C-a send-prefix