-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
80 lines (59 loc) · 2.29 KB
/
tmux.conf
File metadata and controls
80 lines (59 loc) · 2.29 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
78
79
80
# Set ZSH as my shell
set-option -g default-shell /bin/zsh
set-option -g default-command "reattach-to-user-namespace -l /bin/zsh"
# Ensure appropriate colours show in Vim
set -g default-terminal "screen-256color"
# tmux 3.5 Compatibility Updates:
# - escape-time reduced to 10ms (was 0) for better compatibility
# - allow-set-title added to prevent applications from changing pane titles
# - extended-keys-format enabled for improved key handling
# Change Default Keybinding
set-option -g prefix C-a
# Faster Command Sequences (updated for tmux 3.5 compatibility)
set -s escape-time 10
# Mouse Scrolling
set -g mouse on
# highlight window when it has new activity
setw -g monitor-activity on
# set -g visual-activity on
# use source-file ~/.tmux.conf or bind r
unbind r
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Make splitting windows easier
bind-key - split-window -v -c '#{pane_current_path}'
bind-key '\' split-window -h -c '#{pane_current_path}'
# Battery update settings
set -g status-interval 10 # in seconds
# Automatic naming of windows
set-option -g automatic-rename on
# Use system clipboard (macOS or with xclip/xsel on Linux)
set -g set-clipboard on
# Prevent applications from changing pane title (tmux 3.5 feature)
set -g allow-set-title off
# Extended keys format for better key handling (tmux 3.5 feature)
# set -g extended-keys-format on
# Fine adjustment (1 or 2 cursor cells per bump)
bind -n S-Left resize-pane -L 2
bind -n S-Right resize-pane -R 2
bind -n S-Down resize-pane -D 1
bind -n S-Up resize-pane -U 1
# Vim bindings for moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'fabioluciano/tmux-tokyo-night'
set -g @theme_plugins 'datetime,battery'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Continuum Settings
set -g @continuum-restore 'on'
set -g @continuum-save-interval '15' # Save every 15 minutes
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'