-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
84 lines (61 loc) · 1.89 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
## binds
bind space last-window
bind x kill-pane
# sends literal ctrl-a for vim, other tmux sessions, etc.
bind a send-prefix
bind C-a send-prefix
# splits
# why % and "?
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
# send input to every frame in the window
bind i setw synchronize-panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
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
bind-key m choose-window -F "#{window_index}: #{window_name}" "join-pane -h -t %%"
bind-key M choose-window -F "#{window_index}: #{window_name}" "join-pane -v -t %%"
## options
# who wants ctrl-b
set -g prefix C-a
# Start numbering at 1
set -g base-index 1
# auto renumber windows when lower values are closed
set -g renumber-windows on
# makes escing out of vim faster
set -sg escape-time 50
# to make ctrl-arrow, etc. work
set -gw xterm-keys on
# only resize when a smaller client is actually on the window,
# rather than the session
set -gw aggressive-resize on
# all the scrollback
set -g history-limit 1000000
# set term
set -g default-terminal tmux-256color
set -sa terminal-overrides ',xterm-256color:RGB'
set -g focus-events on
# auto set pane titles
set -g set-titles on
## style
# Status bar has a dim gray background
set -g status-style bg=colour234,fg=colour0
# Left shows the session name, in blue
set -g status-left-style fg=colour74
# status in green
set -g status-right-style fg=colour71
# don't need time
set -g status-right '"#T"'
# window text is medium gray
set -gw window-status-style fg=colour244
# current window text is white, active window is highlighted in red
set -gw window-status-current-style fg=colour15,bg=red
# Beeped windows change text color
set -gw window-status-bell-style fg=colour143
set-option -g default-shell /bin/zsh
# vim: cms=#%s