-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
65 lines (52 loc) · 1.17 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
# tmux.conf
# Brandon Freitag, 2017
# colors
set -g default-terminal "xterm"
set -g status-bg black
set -g status-fg yellow
set -g pane-active-border-fg yellow
set -g pane-border-fg black
# remap C-b to M-s
unbind C-b
set -g prefix M-s
bind M-s send-prefix
# split panes with - and =
unbind '"'
unbind %
unbind -
unbind =
bind = split-window -h
bind - split-window -v
# closing windows and panes
unbind .
unbind &
bind / confirm kill-window
bind . confirm kill-pane
# reload tmux.conf
bind r source-file ~/.tmux.conf
# switch panes with alt-arrow
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# accomodate vim keybindings
unbind C-Left
unbind C-Right
unbind C-Up
unbind C-Down
set-window-option -g xterm-keys on
# use a mouse
set -g mouse on
# allow vim to exit modes quickly
set escape-time 0
# restore environment
set -g @continuum-restore 'on'
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Plugin settings
set -g @continuum-save-interval '240'
# tpm
run '~/.tmux/plugins/tpm/tpm'