forked from Zypan/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
93 lines (73 loc) · 1.85 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
#### Basic Options ####
# UTF-8
set -g utf8 on
set -g status-utf8 on
# Vim mode
setw -g mode-keys vi
set -g status-keys vi
# Mouse
set -g mouse-select-pane on
set -g mode-mouse on
set -g mouse-select-window on
set -g mouse-resize-pane on
# Window titles
set -g set-titles on
setw -g automatic-rename on
setw -g allow-rename on
set -g base-index 1
# Shut up!
set -g bell-action none
set -g bell-on-alert off
set quiet on
# Fix terminal name issues
set -s escape-time 1
set -g default-terminal "screen-256color"
# Enable status bar #
bind-key b set status
#### Copy mode ####
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind q kill-window \; kill-session
#### Key bindings ####
# screen forever
unbind C-b
set -g prefix C-a
bind r source-file ~/.tmux.conf
bind-key a send-prefix
# Panel splits and selection
unbind %
bind v split-window -h
unbind '"'
bind h split-window -v
unbind o
bind-key -n C-q select-pane -t :.+
bind-key -n C-n next-window
bind-key -n C-b previous-window
bind-key -n C-g last-window
bind n next-window
bind b previous-window
#### Appearance ####
# Statusbar
set -g status-position bottom
set -g status-interval 4
set -g status-left ''
set -g status-right ''
set -g status-justify centre # center align window list
setw -g status-bg default
setw -g window-status-current-bg default
setw -g window-status-current-fg default
setw -g window-status-bg default
setw -g window-status-fg white
setw -g window-status-format '#[bg=black]#[fg=black,bold] #I #[bg=default] #[fg=black]#W '
setw -g window-status-current-format '#[fg=white]#[bg=cyan] #I #[fg=cyan]#[bg=default] #W '
# Panel borders
set -g pane-active-border-fg cyan
set -g pane-active-border-bg default
set -g pane-border-fg black
set -g pane-border-bg default
# Resize
setw -g aggressive-resize on