summary refs log tree commit diff
path: root/tmux.conf
blob: 6c77707a37c0ccf50e7b80a48abb94837b90bfb2 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Prefix
set-option -g prefix C-z
unbind-key C-b
bind C-t send-prefix

set -s escape-time 1

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

# messaging
set -g message-bg colour167
set -g message-fg white

# View
set-option -g status-interval 5
set-option -g status-left-length 16
set-option -g status-right-length 50

setw -g window-status-format " #W "
set-option -g status-bg colour240
set-option -g status-fg white

set -g status-left ''

set-option -g status-right '[%H:%M]'
set-option -g status-right-fg white
set-option -g status-right-bg colour232

setw -g window-status-current-format " #W "
set-window-option -g window-status-current-bg colour250
set-window-option -g window-status-current-fg black

# move pain like Vim
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind-key c new-window -c "#{pane_current_path}"

# split window
bind _ split-window -v -c "#{pane_current_path}"
bind | split-window -h -c "#{pane_current_path}"

# move last window
bind C-z last-window
bind o last-pane

# Option
set-window-option -g mode-keys vi

# resize pain
bind -r H resize-pane -L 2
bind -r L resize-pane -R 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2

bind i display-panes