-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
48 lines (36 loc) · 1.27 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
set -g default-terminal "screen-256color"
# Set prefix key to Ctrl-a
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
# Split window bindings
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# Reload config
unbind r
bind r source-file ~/.tmux.conf
# Pane resizing bindings
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
# Toggle pane zoom
bind -r m resize-pane -Z
# Enable mouse support
set -g mouse on
# TPM plugin manager
set -g @plugin 'tmux-plugins/tpm'
# List of tmux plugins
set -g @plugin 'christoomey/vim-tmux-navigator' # Navigate panes and vim/nvim with Ctrl-hjkl
set -g @plugin 'jimeh/tmux-themepack' # Configure tmux theme
set -g @plugin 'tmux-plugins/tmux-resurrect' # Persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # Automatically save sessions every 15 minutes
# Theme configuration
set -g @themepack 'powerline/default/cyan' # Use this theme for tmux
# Plugin settings
set -g @resurrect-capture-pane-contents 'on' # Allow tmux-resurrect to capture pane contents
set -g @continuum-restore 'on' # Enable tmux-continuum functionality
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'