-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
64 lines (52 loc) · 1.41 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
# Set prefix key to Ctrl-S instead of the default Ctrl-B
set -g prefix C-s
unbind C-b
bind C-s send-prefix
# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf
# Scroll with mouse
set -g mouse on
# Set delay to make tmux more responsive (i.e. for vim)
set -sg escape-time 1
# Set window and pane index to 1 instead of 0
set -g base-index 1
setw -g pane-base-index 1
# Set vi-like key bindings
set -g status-keys vi
setw -g mode-keys vi
# Set vi-like key bindings for visual mode and copying
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection
# Remap window navigation to vi
unbind j
bind j select-pane -D
unbind k
bind k select-pane -U
unbind h
bind h select-pane -L
unbind l
bind l select-pane -R
# Resize panes using vi navigation uppercase
unbind H
bind H resize-pane -L 10
unbind J
bind J resize-pane -D 10
unbind K
bind K resize-pane -U 10
unbind L
bind L resize-pane -R 10
# Use | to split window horizontally and - to split vertically
bind | split-window -h
bind '\' split-window -h
bind - split-window -v
# Customise the status line
set -g status-bg black
set -g status-fg white
set -g status-interval 5
set -g status-right ' #(date +"%H:%M %d %b %y") '
set -g status-right-length 60
# Customise the current window name
setw -g window-status-current-style fg=yellow
# Customise messages in the command line
set -g message-style bg=black,fg=yellow