/
tmux.conf
110 lines (92 loc) · 2.59 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
106
107
108
109
# fix the prefix
# ==============
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Don't even trip
# ===============
set -sg escape-time 0
set -sg repeat-time 600
# Counting starts with one, damnit,
# it *is* the leftmost and all
# =================================
set -g base-index 1
setw -g pane-base-index 1
# reload config
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Activity
# ====================================
setw -g monitor-activity on
set -g visual-activity off
set -g xterm-keys on
# get our clipboard back
# ======================================
set-option -g default-command "reattach-to-user-namespace -l zsh"
# Session Management and Navigation
# ======================================
bind-key -r C-s choose-session
# Window (tab) Management and Navigation
# ======================================
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
bind-key -r z last-window
bind , command-prompt "rename=window '%%'"
# Pane Management and Navigation
# ================================
# splitting horizontally
unbind %
bind v split-window -h
bind -r up resize-pane -U 10
bind -r down resize-pane -D 10
# splitting vertically
unbind '"'
bind s split-window -v
bind -r left resize-pane -L 10
bind -r right resize-pane -R 10
# navigate like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r space select-pane -t:.+
# Colors
# ================
set -g default-terminal "screen-256color"
# statusline
set -g status-fg white
set -g status-bg black
setw -g window-status-fg green
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr dim
setw -g window-status-bell-bg white
setw -g window-status-bell-fg red
# pane borders
set -g pane-border-fg black
set -g pane-border-bg black
set -g pane-active-border-fg yellow
set -g pane-active-border-bg black
# command line
set -g message-fg white
set -g message-bg black
set -g message-attr bright
# Status Line
# ===========
set -g status-utf8 on
set -g status-left "#[fg=green]#S #[fg=yellow]#I #[fg=blue]#P"
set -g status-right "#[fg=blue]%d %b %R"
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
# Copy Mode
# =========
setw -g mode-keys vi
unbind [
bind Space copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind -t vi-copy Escape cancel