This repository has been archived by the owner on Aug 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.tmux.conf
117 lines (96 loc) · 2.58 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
114
115
116
117
# David Wood's .tmux.conf Configuration
# dotfiles: https://github.com/davidtwco/dotfiles
# website: https://davidtw.co
# =================================================
# Plugins
# =======
# tpm {{{
# =======
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'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-logging'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'NHDaly/tmux-better-mouse-mode'
run '~/.tmux/plugins/tpm/tpm'
# }}}
# Configuration
# =============
# Focus Events {{{
# ------------
set -g focus-events on
# }}}
# Mouse {{{
# =====
set -g mouse on
# }}}
# Misc {{{
# ====
# Enable vi keys
setw -g mode-keys vi
# Sync input between panes.
bind S set-window-option synchronize-panes
# Clear screen.
bind C-l send-keys 'C-l'
# Use 256 colours.
set -g default-terminal "screen-256color"
# }}}
# Pane Aliases {{{
# ============
# Aliases for splitting panes
bind | split-window -h
bind - split-window -v
# Aliases for moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# }}}
# Resizing Aliases {{{
# ================
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
# }}}
# Statusline {{{
# ==========
set-option -g status-fg colour8
set-option -g status-bg default
set-option -g status-attr default
set-window-option -g window-status-fg colour7
set-window-option -g window-status-bg default
set-window-option -g window-status-attr default
set-window-option -g window-status-current-fg colour15
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr default
set-option -g message-fg colour7
set-option -g message-bg default
set-option -g message-attr bright
set -g status-left-length 40
set -g status-left ' #S '
set -g status-right " "
set -g status-justify left
setw -g window-status-format ' #W #[fg=colour1]#{?pane_synchronized,⬣ ,}'
setw -g window-status-current-format ' #W #[fg=colour1]#{?pane_synchronized,⬣ ,}'
# }}}
# tmux-continuum {{{
# ==============
set -g @continuum-restore 'on'
set -g @continuum-boot 'on'
# }}}
# tmux-resurrect {{{
# ===============
set -g @resurrect-strategy-vim 'session'
set -g @resurrect-save-bash-history 'on'
set -g @resurrect-capture-pane-contents 'on'
# }}}
# Window Aliases {{{
# ==============
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# }}}
# vim:foldmethod=marker:foldlevel=0