-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
86 lines (61 loc) · 2.34 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
# set prefix key to ctrl+a
#set -g prefix C-a
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Reload key
bind R source-file ~/.tmux.conf \; run-shell "echo '.tmux.conf reloaded'"
# send the prefix to client inside window (ala nested sessions)
bind-key a send-prefix
# toggle statusbar
bind-key b set-option status
# Fix keys in putty
set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx@:rmkx@"
#set-option -g terminal-overrides '*:enacs@:smacs@:rmacs@:acsc@'
# ctrl+left/right cycles thru windows
bind-key -n C-right next
bind-key -n C-left prev
bind-key -n S-up select-pane -U
bind-key -n S-down select-pane -D
bind-key -n S-left select-pane -L
bind-key -n S-right select-pane -R
set-window-option -g automatic-rename on
# scrollback buffer n lines
set -g history-limit 5000
# on-screen time for display-panes in ms
set -g display-panes-time 2000
# start window indexing at one instead of zero
set -g base-index 1
#### statusbar ####
set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left '#[fg=green][#[fg=green,bright] #h (#S) #[fg=green,nobright]][#[fg=default]'
set -g status-right '#[fg=green]][ #[fg=blue,bright]%d/%m/%Y #[fg=white,nobright]%H:%M #[fg=default]#[fg=green,dim]]#[fg=default]'
set -g status-left-length 25
### COLOUR
# use 256 colors
set -g default-terminal "screen-256color"
# default statusbar colors
set-option -g status-style bg=black,fg=white,default
# default window title colors
set-window-option -g window-status-style fg=white,bg=default,dim
# active window title colors
set-window-option -g window-status-current-style fg=white,bg=default,bright
set-window-option -g window-status-current-format '#[fg=red,nobold](#[fg=white,bold]#I:#W#F#[fg=red,nobold])'
# pane border
#set-option -g pane-border-fg black #base02
#set-option -g pane-border-bg colour235 #base02
#set-option -g pane-active-border-fg white #base01
#set-option -g pane-active-border-bg colour235 #base01
# message text
set-option -g message-style fg=default,bg=white
# pane number display
#set-option -g display-panes-active-colour colour33 #blue
#set-option -g display-panes-colour colour166 #orange
# clock
#set-window-option -g clock-mode-colour colour64 #green
# Split like screen
bind S split-window -v
bind | split-window -h
bind -n F5 split-window -v
bind -n F4 split-window -h