-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
54 lines (44 loc) · 1.01 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
# reload tmux config using 'r'
bind r source-file ~/.tmux.conf
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# start windows numbering at 1
set -g base-index 1
## Pane settings
# split panes using '|' and '-'
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# remove not-used pane keys to prevent accident
unbind '{'
unbind '}'
unbind o
unbind ' '
unbind M-1
unbind M-2
unbind M-3
unbind M-4
unbind M-5
## Copymode setting
# set copymode keymap as vi
set -g mode-keys vi
## Mouse integration
if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]' \
'set -g mouse on' \
'set -g mode-mouse on; \
set -g mouse-resize-pane off; \
set -g mouse-select-pane on; \
set -g mouse-select-window on'
## Set escape delay to 0
set -sg escape-time 0
## Status bar properties
set -g display-time 5000
## Title bar
set -g set-titles on
set -g automatic-rename on
set -g status-left-length 20
set -g status-right '%d.%b %R'
set -g status-interval 5