-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
106 lines (91 loc) · 2.78 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# Settings
set -g default-shell /usr/bin/zsh
set -g status on
set -g destroy-unattached off
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
set -g mode-keys vi
set -g status-keys vi
set -g mouse on
set -g escape-time 0
set -g focus-events on
set -g history-limit 3000
set -g history-file ~/.tmux_history
set -g monitor-activity off
set -g visual-activity off
set -g base-index 1
set -g pane-base-index 1
set -g -w automatic-rename on
set -g renumber-windows on
set -g bell-action none
set -g status-position bottom
set -g status-interval 5
set -g window-status-separator ''
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'MunifTanjim/tmux-mode-indicator'
set -g @plugin 'dracula/tmux'
set -g @plugin 'christoomey/vim-tmux-navigator'
unbind C-b
set -g prefix C-g
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
bind -n M-l send-keys 'C-l'
# Windows
unbind n
unbind c
bind -n M-C-t new-window -c "#{pane_current_path}"
bind -n M-C-Left previous-window
bind -n M-C-Right next-window
bind -n M-C-[ swap-window -t -1 \; previous-window
bind -n M-C-] swap-window -t +1 \; next-window
bind -n M-C-q kill-window
bind -n M-C-n last-window
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind -n M-0 select-window -t 10
# Panes
unbind '"'
unbind '%'
unbind -n C-\\
bind -n M-| split-window -fh -c "#{pane_current_path}"
bind -n M-\\ split-window -h -c "#{pane_current_path}"
bind -n M-_ split-window -fv -c "#{pane_current_path}"
bind -n M-- split-window -v -c "#{pane_current_path}"
bind -n M-[ swap-pane -D
bind -n M-] swap-pane -U
bind -n M-o next-layout
bind -n M-n last-pane
bind -n M-, select-pane -t 1
bind -n M-C-k resize-pane -U
bind -n M-C-j resize-pane -D
bind -n M-C-h resize-pane -L
bind -n M-C-l resize-pane -R
bind -n M-m resize-pane -Z
bind -n M-q kill-pane
# Copy mode
setw -g mode-keys vi
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind -T copy-mode-vi v send -X begin-selection
bind P paste-buffer
# Plugin configs
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-dir '~/.tmux/resurrect-dir'
set -g @resurrect-processes 'ssh'
set -g @dracula-show-powerline true
set -g @dracula-network-bandwidth-show-interface false
set -g @dracula-show-location false
set -g @dracula-show-battery false
set -g @dracula-show-flags true
set -g @dracula-show-left-icon session
set -g @dracula-show-fahrenheit false
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'