summary refs log tree commit diff
path: root/tmux.conf
blob: 068685b3f1bba1283464dd0e567b43ee32249647 (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 black

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

setw -g window-status-format "#I:#W "
set-option -g status-bg colour232
set-option -g status-fg white

set -g status-left ''

set-option -g status-right '#(docker-gcp tmux-status) | %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 colour254
set-window-option -g window-status-current-fg black

# move pane 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 pane
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