-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
70 lines (56 loc) · 1.8 KB
/
.tmux.conf
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
60
61
62
63
64
65
66
67
68
69
70
# http://unix.stackexchange.com/a/32451
set-option -g default-shell "/opt/homebrew/bin/fish"
bind y run "tmux save-buffer - |pbcopy"
bind p run "pbpaste | tmux load-buffer - && tmux paste-buffer"
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g renumber-windows on
set -g default-terminal "tmux-256color"
set -g history-limit 65535
# https://bitbucket.org/lyro/evil/issue/69/delay-between-esc-or-c-and-modeswitch
set -s escape-time 0
# key bindings
unbind C-b
unbind %
unbind '"'
unbind n
set -g prefix `
bind-key ` send-prefix
set-window-option -g mode-keys vi
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key H resize-pane -L 5
bind-key L resize-pane -R 5
bind-key J resize-pane -D 5
bind-key K resize-pane -U 5
bind-key | split-window -h
bind-key \\ split-window -h
bind-key - split-window -v
bind-key x confirm-before kill-pane
bind-key X confirm-before kill-window
bind-key , previous-window # <
bind-key . next-window # >
bind-key < swap-window -t :-
bind-key > swap-window -t :+
bind-key r source-file ~/.tmux.conf
bind-key R refresh-client
## messages
set-option -g message-style bg=colour222,fg=colour232
set-option -g display-time 1500
## set status bar
set-option -g status-interval 1
set-option -g status-style bg=colour233,fg=colour240
set-option -g status-left ''
set-option -g status-right ''
set-option -g status-right-length 100
set-option -g status-left-length 120
## highlight active window
set-window-option -g window-status-current-style bg=colour233,fg=colour255,bright
set-window-option -g window-status-current-format '#I'
set-window-option -g window-status-format '#I'
set-option -g pane-active-border-style fg=colour240
set-option -g pane-border-style fg=colour240
set -g status-justify centre
set -g status on