-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
111 lines (77 loc) · 2.14 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
# set the prefix to C-a
# unbind frees up C-b
set -g prefix C-a
unbind C-b
# set delay to 1 so it doesn't interfere with vim
set -s escape-time 1
# bind source code reload to r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# to send the prefix to the running application
# just press it twice
bind C-a send-prefix
# prefix + | and prefix + - bound to splitting window
bind | split-window -h -l 80
bind - split-window -v
# resizing panes
bind -r h resize-pane -L 5
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
# enable mouse mode
setw -g mode-mouse on
set -g mouse-select-pane on
# 256 colors
set -g default-terminal "screen-256color"
# status background
set -g status-fg white
set -g status-bg black
# active window coloring
setw -g window-status-fg cyan
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
# active pane coloring
set -g pane-border-fg green
set -g pane-border-bg black
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# command line coloring
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# activity in other windows
setw -g monitor-activity on
setw -g visual-activity on
# xterm keys need to work
set-window-option -g xterm-keys on
unbind-key -n C-Left
unbind-key -n C-Right
# unbind ctrl l or else clearing using it won't work.
unbind-key -n C-L
# allow for "zooming" and unzooming of panes
unbind +
bind + \
new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \;\
swap-pane -s tmux-zoom.0 \;\
select-window -t tmux-zoom
unbind _
bind _ \
last-window \;\
swap-pane -s tmux-zoom.0 \;\
kill-window -t tmux-zoom
# Toggle mouse on
bind m \
set -g mode-mouse on \;\
set -g mouse-resize-pane on \;\
set -g mouse-select-pane on \;\
set -g mouse-select-window on \;\
display 'Mouse: ON'
# Toggle mouse off
bind M \
set -g mode-mouse off \;\
set -g mouse-resize-pane off \;\
set -g mouse-select-pane off \;\
set -g mouse-select-window off \;\
display 'Mouse: OFF'