summaryrefslogtreecommitdiff
path: root/tmux.conf
blob: 4d1740a422bef4f93c8e23130e7489a76c2e00c5 (plain)
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
unbind C-b
set -g prefix C-t

set -g default-terminal "screen-256color"
set -g history-limit 10000

setw -g utf8 on

setw -g mode-keys vi

bind v copy-mode    # Enter in copy-mode with V like 'Visual'
bind p paste-buffer # Paste tmux buffer to window
bind-key -t vi-copy 'v' begin-selection # Select in copy-mode
bind-key -t vi-copy 'y' copy-selection  # Copy in copy-mode

set-option -g status-utf8 on
set-option -g status-justify left
set-option -g status-bg black
set-option -g status-fg white
set-option -g status-left-length 40

set-option -g pane-active-border-fg green
set-option -g pane-active-border-bg black
set-option -g pane-border-fg white
set-option -g pane-border-bg black

set-option -g message-fg black
set-option -g message-bg green

set-option -g allow-rename off

setw -g window-status-bg black
setw -g window-status-current-fg green

set -g history-limit 4096

bind-key C-t last-window

bind-key i split-window -h -c "#{pane_current_path}"
bind-key o split-window -v -c "#{pane_current_path}"

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind-key -n M-S-Up    resize-pane -U 2
bind-key -n M-S-Down  resize-pane -D 2
bind-key -n M-S-Right resize-pane -R 2
bind-key -n M-S-Left  resize-pane -L 2