-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
59 lines (44 loc) · 1.69 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
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
set -g status-bg "#161b22"
set -g status-fg "#c9d1d9"
set -g window-status-current-style "bg=#238636,fg=#c9d1d9,bold"
set -g window-status-style "bg=#0d1117,fg=#8b949e"
set -g pane-border-style "fg=#30363d"
set -g pane-active-border-style "fg=#238636"
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
set -g mouse on
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
bind j resize-pane -D 5
bind k resize-pane -U 5
bind l resize-pane -R 5
bind h resize-pane -L 5
bind -r m resize-pane -Z
unbind %
bind e split-window -h
unbind '"'
bind o split-window -v
bind -n C-S-j if-shell '[ $(tmux display -p "#{window_zoomed_flag}") = 1 ]' \
"resize-pane -Z; select-pane -D; resize-pane -Z" \
"select-pane -D"
bind -n C-S-k if-shell '[ $(tmux display -p "#{window_zoomed_flag}") = 1 ]' \
"resize-pane -Z; select-pane -U; resize-pane -Z" \
"select-pane -U"
bind -n C-S-h if-shell '[ $(tmux display -p "#{window_zoomed_flag}") = 1 ]' \
"resize-pane -Z; select-pane -L; resize-pane -Z" \
"select-pane -L"
bind -n C-S-l if-shell '[ $(tmux display -p "#{window_zoomed_flag}") = 1 ]' \
"resize-pane -Z; select-pane -R; resize-pane -Z" \
"select-pane -R"
set -sg escape-time 10
set -g @plugin 'tmux-plugins/tpm' # TPM plugin manager
set -g @plugin 'christoomey/vim-tmux-navigator' # Vim-Tmux Navigator for seamless navigation
# Tmux Resurrect to restore tmux sessions
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-capture-pane-contents 'on'
# Initialize TPM (keep this line at the bottom)
run '~/.tmux/plugins/tpm/tpm'