summary refs log tree commit diff
path: root/.tmux.conf
blob: b7a91c9dd190cae65928204e581402d6edd1cf33 (plain) (blame)
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
# Use the same prefix as screen
unbind C-b
set -g prefix C-a
bind C-a send-prefix

# Prevent escape key delay
set -g escape-time 0

# Enable colors
set -g default-terminal "screen-256color"

# Disable status bar
set -g status off

# Start windows at 1 rather than 0
set -g base-index 1

# Split windows like vim
bind s split-window -v
bind v split-window -h

# Move between panes like vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

# Resize panes like vim
bind < resize-pane -L 1
bind > resize-pane -R 1
bind - resize-pane -D 1
bind + resize-pane -U 1

# Vi-style controls for copy mode
setw -g mode-keys vi

# Switch panes like C-w C-w in vim
bind C-a last-pane

# Balance vertical panes
bind = select-layout even-horizontal