-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
113 lines (88 loc) · 2.26 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
106
107
108
109
110
111
112
113
#######################
### CONFIGURATION ###
#######################
# Window titles
set-option -g set-titles on
# Colors
set -g default-terminal screen-256color
# Mouse
set-option -g mouse on
# Vi-like keys
set-option -g mode-keys vi
set-option -g status-keys vi
# Count panes from 1
set -g base-index 1
setw -g pane-base-index 1
# Focus events for vim etc
set -g focus-events on
# Don't wait for sequences
set -s escape-time 0
# Boost history
set -g history-limit 5000
# Refresh status bar every 10s
set -g status-interval 10
##################
### BINDINGS ###
##################
# Use `C-a` as Prefix
set-option -g prefix C-a
unbind-key C-a
bind C-a send-prefix
set -g base-index 1
# Enter copy-mode
bind Escape copy-mode
# Jump to beginning of line
bind a send-prefix
# Window toggler
bind-key C-a last-window
# Move between windows
unbind [
bind [ previous-window
unbind ]
bind ] next-window
# Window resizer
bind-key K resize-pane -U 10
bind-key J resize-pane -D 10
bind-key H resize-pane -L 10
bind-key L resize-pane -R 10
bind < resize-pane -L 10
bind > resize-pane -R 10
# Split window horizontal with: s.
unbind %
bind s split-window -v
# Split windows vertical with: v.
unbind '"'
bind v split-window -h
# Zoom pane
bind -n C-y resize-pane -Z
# Vim-like selection and copy
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
# Reload tmux.conf with: r.
bind r source-file ~/.tmux.conf\; display "Config Reloaded!"
###############
### STYLES ###
###############
set -g pane-border-style fg=colour235
set -g pane-active-border-style fg=#6272a4
set -g status-position bottom
set -g status-justify centre
################
### PLUGINS ###
################
#
# Looking for awesome plugins?
# https://github.com/rothgar/awesome-tmux
#
set -g @plugin 'sei40kr/tmux-airline-dracula'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'laktak/extrakto'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tpm'
#
# Initialize TMUX plugin manager
#
if "test ! -d $HOME/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm $HOME/.tmux/plugins/tpm && $HOME/.tmux/plugins/tpm/bin/install_plugins'"
run -b '~/.tmux/plugins/tpm/tpm'