Snippet Tmux configuration

Snippet The configuration for tmux

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
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
setw -g mode-keys vi
set -sg escape-time 0

### use C-w to replace C-b
# bind <prefix> to C-w
# unbind C-b
# set-option -g prefix C-w
# bind-key C-w send-prefix

### use <prefix> s for horizontal split
bind s split-window -v

### use <prefix> v for vertical split
bind v split-window -h
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

### resize panes more easily
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10

### force tmux to use 256 color
set -g default-terminal "screen-256color"