-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
80 lines (64 loc) · 2.25 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
# switch panes using vim bindings or arrows
bind Up select-pane -U
bind k select-pane -U
bind Down select-pane -D
bind j select-pane -D
bind Left select-pane -L
bind h select-pane -L
bind Right select-pane -R
bind l select-pane -R
# saner split pane commands
bind | split-window -h
bind - split-window -v
# unbind default prefix and set it to Ctrl+a
unbind C-b
set -g prefix C-a
bind C-a send-prefix
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# tile all windows
unbind =
bind = select-layout tiled
# no delay for escape key press
set -sg escape-time 0
# reload config file
bind R source-file ~/.tmux.conf \; display "~/.tmux.conf reloaded"
# mouse stuff
setw -g mouse on
# theme
set -g status-style bg=default,fg=white
set -g window-status-current-style bg=black,fg=white,bold
set -g pane-border-style fg=white
set -g pane-active-border-style fg=colour39,bg=default
set -g mode-style bg=colour39,fg=white,bold
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=colour39](#S) #(whoami) '
set -g status-right ' #[fg=colour39]#h#[default] #[fg=colour39] %h %d %Y %l:%M %p#[default]'
set -g window-status-current-style bg=default,fg=colour39
# automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
# syncrhonize panes
bind E setw synchronize-panes
# start numbering at 1
set -g base-index 1
setw -g pane-base-index 1
# use vim binding in scroll/copy mode
setw -g mode-keys vi
# set scrollback buffer size
set-option -g history-limit 50000
# tpm
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# Install the plugins for tmux right at first start
if "test ! -d ~/.tmux/plugins/tpm" \
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'