forked from lucaswinningham/dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
153 lines (106 loc) · 3.18 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# bindings
# remap prefix from 'C-b' to 'C-z'
unbind C-b
set-option -g prefix C-z
bind C-z send-prefix
# split panes using C-/ and C--
bind / split-window -h
bind - split-window -v
unbind '"'
unbind %
# reload config file using C-r
bind r source ~/.tmux.conf \; display-message "Config reloaded."
# clear using ^l ^k
bind -n C-k clear-history
# ask before killing window
unbind C-d
bind -n C-d confirm-before -p "kill window #W? (y/n)" kill-window
# cmd-alt-arrow without prefix key to switch panes (needs iTerm key bindings to shift-arrow)
# map shift-up to 0x1b 0x5b 0x31 0x3b 0x32 0x41
# map shift-down to 0x1b 0x5b 0x31 0x3b 0x32 0x42
# map shift-right to 0x1b 0x5b 0x31 0x3b 0x32 0x43
# map shift-left to 0x1b 0x5b 0x31 0x3b 0x32 0x44
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
bind -n S-Right select-pane -R
bind -n S-Left select-pane -L
unbind Up
unbind Down
unbind Left
unbind Right
# cmd-arrow without prefix key to switch panes (needs iTerm key bindings to prefix-arrow)
# map prefix-right to 0x1a 0x1b 0x5b 0x43
# map prefix-left to 0x1a 0x1b 0x5b 0x44
bind Right next-window
bind Left previous-window
unbind C-n
unbind n
unbind M-n
unbind -n WheelDownStatus
unbind C-p
unbind p
unbind M-p
unbind -n WheelUpStatus
# Something about a mouse
set-option -g mouse on
# colors
white10='#1b1b1b'
white24='#3e3e3e'
white50='#808080'
white66='#a8a8a8'
white78='#c8c8c8'
white100='#ffffff'
# panes
# focused pane colors
setw -g window-active-style fg='terminal',bg='terminal'
# unfocused panes colors
setw -g window-style fg="$white66",bg="$white24"
# pane borders
set -g pane-border-style fg="$white50",bg="$white24"
set -g pane-active-border-style fg="$white100",bg="terminal"
# status bar
# status bar message colors
set -g message-style bg="$white100",fg="$white10"
# status bar positioning
set -g status-position top
set -g status-justify centre
# status bar colors
set -g status-style bg="$white100",fg="$white10"
# status bar focused tab
color="#[fg=$white100]#[bg=$white10]"
label="#{?window_zoomed_flag, [[ #W ]] , #W }"
set -g window-status-current-format "$color$label"
set-environment -r color
set-environment -r label
# status bar nonfocused tabs
color="#[fg=$white10]#[bg=$white100]"
label="#{?window_zoomed_flag, [[ #W ]] , #W }"
set -g window-status-format "$color$label"
set-environment -r color
set-environment -r label
# status bar refresh rate in seconds, "A setting of zero disables redrawing at interval"
set -g status-interval 0
# status bar peripheral content
set -g status-left-length 0
set -g status-right-length 0
set -g status-left-style default
set -g status-right-style default
text="#{?client_prefix,!!!!!!!!!!!!!!!!!!!!!!!!, }"
set -g status-left "$text"
set -g status-right "$text"
set-environment -r text
# others
# prohibit automatic window renaming
setw -g automatic-rename off
# cleanup
# colors
set-environment -r white10
set-environment -r white50
set-environment -r white78
set-environment -r white100
# plugins
# setup
# set -g @plugin 'tmux-plugins/tpm'
# set -g @plugin 'tmux-plugins/tmux-sensible'
# initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# run '~/.tmux/plugins/tpm/tpm'