-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtmux.conf
82 lines (62 loc) · 1.85 KB
/
tmux.conf
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
81
82
# Tmux configs
# Reload the file with Prefix r.
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Set C-a as default shortcut instead C-b
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Set VI key bindings
set -g status-keys vi
setw -g mode-keys vi
# Splitting panes
bind | split-window -h
bind - split-window -v
# Moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Synchronize panes
bind C-s setw synchronize-panes
# Resizing panes
bind-key -r J resize-pane -D 5
bind-key -r K resize-pane -U 5
bind-key -r H resize-pane -L 5
bind-key -r L resize-pane -R 5
# History Limit
set -g history-limit 15000
# Use vim keybindings in copy mode
setw -g mode-keys vi
# Disable activity alerts
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-window-option -g monitor-activity off
set-option -g bell-action none
# 256 colors
set-option -ga terminal-overrides ",xterm-256color:Tc"
set -g default-terminal "screen-256color"
# Status config
set -g status-position bottom
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-option -g repeat-time 0
# Removes ESC delay
set -sg escape-time 0
# Image preview in Tmux (via yazi)
# https://github.com/sxyazi/yazi/wiki/Image-preview-within-tmux
set -g allow-passthrough on
set -ga update-environment TERM
set -ga update-environment TERM_PROGRAM
# 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-pain-control'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'erikw/tmux-powerline'
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavor 'frappe'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'