-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_tmux.conf
121 lines (89 loc) · 2.64 KB
/
dot_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
################################################################################
## behavior
# C-b, really/
set -g prefix C-x
# first index is 1, not 0
set -g base-index 1
setw -g pane-base-index 1
# disable bells
set -g bell-action none
# allows for faster key repetition
set -s escape-time 0
set -g repeat-time 0
# set window notifications
setw -g monitor-activity on
set -g visual-activity on
# limit history depth
set -g history-limit 10000
# automatically set window title
setw -g automatic-rename on
# do not automatically resize windows
setw -g aggressive-resize off
# vi-style controls for copy mode
setw -g mode-keys vi
################################################################################
## look & feel
# 256 color
set -g default-terminal "screen-256color"
# default statusbar colors
set -g status-bg colour235 #base02
set -g status-fg colour136 #yellow
set -g status-attr default
# default window title colors
setw -g window-status-fg colour244
setw -g window-status-bg default
setw -g window-status-attr dim
# active window title colors
setw -g window-status-current-fg colour166 #orange
setw -g window-status-current-bg default
setw -g window-status-current-attr bright
# pane border
set -g pane-border-fg colour235 #base02
set -g pane-active-border-fg colour240 #base01
# message text
set -g message-bg colour235 #base02
set -g message-fg colour166 #orange
# pane number display
set -g display-panes-active-colour colour33 #blue
set -g display-panes-colour colour166 #orange
# clock
setw -g clock-mode-colour colour64 #green
# copy selection color
#setw -g mode-fg black
#setw -g mode-bg green
# status line
set -g status-interval 60
set -g status-left-length 30
set -g status-left '#[fg=green](#S) #(whoami)@#H#[default]'
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=blue]%H:%M#[default]'
setw -g window-status-current-format " [#I#F] #W "
setw -g window-status-format "[#I#F#W]"
################################################################################
## key shortcuts
# screen-like
bind ^C new-window
bind ^D detach-client
bind ^N next-window
bind ^P previous-window
bind ^O last-window
# rotate
bind ^R rotate-window -D
# split
bind | split-window -h
bind _ split-window -v
bind-key ESCAPE copy-mode
bind \; command-prompt
# split windows like vim
bind s split-window -v
bind v split-window -h
# move around panes with hjkl, as one would in vim after pressing ctrl-w
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes like vim
bind < resize-pane -L 2
bind > resize-pane -R 2
bind - resize-pane -D 2
bind + resize-pane -U 2
bind : command-prompt