-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.tmux.conf
41 lines (32 loc) · 1.5 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
set -g base-index 1
set -g default-terminal "screen-256color"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# Allow mouse input if tmux is <2.1
# Prior to version 2.1, there were several mouse options to set
if-shell '[[ (($(tmux -V | cut -d\ -f2) < 2.1)) ]]' \
"set -g mouse-select-pane on; set -g mode-mouse on; \
set -g mouse-resize-pane on; set -g mouse-select-window on"
# Allow mouse input if tmux is >2.0
# In version 2.1 "mouse" replaced the previous 4 mouse options
if-shell '[[ (($(tmux -V | cut -d\ -f2) > 2.0)) ]]' \
"set -g mouse on"
# UTF8 is autodetected in 2.2 onwards, but errors if explicitly set
if-shell '[[ (($(tmux -V | cut -d\ -f2) < 2.2)) ]]' \
"set -g utf8 on; set -g status-utf8 on; set -g mouse-utf8 on"
# Clock settings
set-window-option -g clock-mode-colour "#a22020"
set-window-option -g clock-mode-style 12
# History scrollback size (default 2000)
set-option -g history-limit 10000
# Allow reloading tmux config with Ctrl+b -> Shift+r
bind R source-file ~/.tmux.conf \; display-message "Config reloaded..."
# Color of status bar
set -g status-bg colour33
set -g status-fg colour255
set -g pane-active-border-style fg=colour33,bg=default
# Allow setting titles
set -g set-titles on
set -g set-titles-string "#{W:#{E:window-status-format} ,#{E:window-status-current-format} } - #{USER}@#{host}"