Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# True color support
|
|
set -g default-terminal "tmux-256color"
|
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
|
|
|
# Status bar at top
|
|
set -g status-position top
|
|
|
|
# Modern status bar styling
|
|
set -g status-style 'bg=#1a1b26 fg=#a9b1d6'
|
|
set -g status-left '#[fg=#7aa2f7,bold] #S '
|
|
set -g status-right '#[fg=#565f89]%Y-%m-%d %H:%M '
|
|
set -g status-left-length 40
|
|
|
|
# Window tabs
|
|
set -g window-status-current-format '#[fg=#1a1b26,bg=#7aa2f7,bold] #I:#W '
|
|
set -g window-status-format '#[fg=#565f89] #I:#W '
|
|
|
|
# Pane borders
|
|
set -g pane-border-style 'fg=#3b4261'
|
|
set -g pane-active-border-style 'fg=#7aa2f7'
|
|
|
|
# Message styling
|
|
set -g message-style 'bg=#1a1b26 fg=#7aa2f7'
|
|
|
|
# Mouse support (click, scroll, resize panes)
|
|
set -g mouse on
|
|
|
|
# Clipboard support (OSC 52 - works with modern terminals)
|
|
set -g set-clipboard on
|
|
|
|
# Scroll history
|
|
set -g history-limit 50000
|
|
|
|
# Copy mode with vi keys
|
|
setw -g mode-keys vi
|
|
|
|
# Copy to system clipboard (macOS)
|
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy"
|
|
|
|
# Tokyo Night theme plugin
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'janoamaral/tokyo-night-tmux'
|
|
|
|
# Initialize TPM (keep at bottom)
|
|
run '~/.tmux/plugins/tpm/tpm'
|