-
Notifications
You must be signed in to change notification settings - Fork 17
/
tmux.conf
69 lines (54 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
# Work nicely with emacs key combos
set -g default-terminal "xterm-256color"
set-window-option -g xterm-keys on
# Bind <C-q> to leader
unbind C-b
set -g prefix C-q
bind-key q send-prefix
# Start numbering at 1
set -g base-index 1
# Allows for faster key repetition
set -s escape-time 0
# The | and - keys split windows like you'd expect
unbind %
bind | split-window -h
bind - split-window -v
# Leader-hjkl select other panes (vim-style)·
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
set -g status-interval 1
set -g history-limit 10000 # increase scrollback lines
# 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
# Set status bar
set -g status-bg black
set -g status-fg white
set -g status-left ""
set -g status-right "#[fg=green]#H"
# Highlight active window
set-window-option -g window-status-current-bg red
# Sane scrolling
set -g mode-mouse on
# Use Ryan N's slick status bar
set -g status-left-length 52
set -g status-right-length 451
set -g status-fg white
set -g status-bg colour234
set -g window-status-activity-attr bold
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
set -g status-left-bg colour252
set -g status-left-fg colour235
set -g status-left ' $#S #[fg=default,bg=colour234,nobold]'
set -g window-status-format "#[fg=white,bg=colour234] #I » #W"
set -g window-status-current-format "#[fg=colour25,bg=colour39,noreverse,bold] #I > #W #[fg=colour39,bg=colour234,nobold]"
set -g status-right-fg colour252
set -g status-right-bg colour234
set -g status-right '#[fg=red]«Leader: C-q»#[fg=default] #(whoami)@#(hostname) %H:%M:%S '