-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
105 lines (82 loc) · 2.88 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# See: http://mutelight.org/articles/practical-tmux
# And also: tmux 2, Productive Mouse-Free Development (book)
###############################################################################
# Essentials
###############################################################################
set -g default-terminal "screen-256color"
# Be more vi-user-friendly
set-option -g status-keys vi
set-window-option -g mode-keys vi
# Status line update every 60s
set -g status-interval 60
# Window list should be center'd
set -g status-justify centre
# Show alerts
setw -g monitor-activity on
set -g visual-activity on
# Remove escape sequence time
set -sg escape-time 0
# Be more mouse-user-friendly
set -g mouse on
# Start counting at 1.
set -g base-index 1
set -g pane-base-index 1
setw -g aggressive-resize on
###############################################################################
# Custom key bindings
###############################################################################
# Let's use the space key as the tmux-leader
unbind C-b
set -g prefix C-space
bind-key C-space last-window
bind-key space send-prefix
# Let me hold the ctrl key down.
bind-key C-n next
bind-key C-p prev
# List all windows with prefix+o
bind-key o choose-window
# Move between panes with prefix/jkhl
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Quick window selection
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Windows-esque pasting
bind-key C-v paste-buffer
# Splitting panes with | and -
bind | split-window -h
bind - split-window -v
###############################################################################
# Color settings
###############################################################################
# Set status bar
set -g status-style fg=black,bg=white
# Configure the message line color.
# Should be the same as the status bar. Consistency goddammit!
setw -g message-style fg=black,bg=white
# Configure the mode window.
set -g mode-fg brightwhite
set -g mode-bg colour126
# Configure colors for the non-active "tabs" (aka window status)
set -g window-status-style fg=colour235,bg=white
# Configure colors for the active tab
set -g window-status-current-style fg=white,bg=colour126
# Configure colors for a tab with alerts
setw -g window-status-activity-attr none
setw -g window-status-activity-style fg=colour235,bold,bg=white
# Status line left side
set -g status-left-length 40
set -g status-left "G'day, #S"
# Status on the right
set -g status-right "Rock on. | %d %b %R"
# Shade the non-active panes.
setw -g window-style fg=colour240,bg=colour235
# Active pane is black/white for max contrast
setw -g window-active-style fg=white,bg=black
# Pane border colors
# Consistent with the window styles above.
setw -g pane-border-style fg=colour240,bg=colour235
setw -g pane-active-border-style fg=white,bg=black
run-shell ~/git/tmux-resurrect/resurrect.tmux