File size: 1,440 Bytes
f1a2ec8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'sainnhe/tmux-fzf'
set -g @plugin 'catppuccin/tmux'

# Enable clipboard integration
set -g set-clipboard on

# Enable tmux-continuum and set it to boot on start
set -g @continuum-boot 'on'
# Set the strategy for tmux-resurrect to use nvim sessions
set -g @resurrect-strategy-nvim 'session'

# Disable the bell action
set-option -g bell-action none

# Set the default shell to zsh without global rc files
set-option -g default-command "zsh --no-globalrcs"
# Enable setting terminal titles
set -g set-titles on
# Set the format for terminal titles
set -g set-titles-string '#T #{pane_current_command}'
# Set the window size to the smallest
set -g window-size smallest
# Enable aggressive resize for windows
setw -g aggressive-resize on
# Enable mouse support
set -g mouse on
# Set the default terminal type to tmux-256color
set -g default-terminal "tmux-256color"
# Append terminal overrides for xterm-256color
set-option -ga terminal-overrides ",xterm-256color:Tc"

# Bind 'r' to reload the tmux config and display a message
bind r source-file ~/.tmux.conf \; display "Config reloaded!"

# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'