-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
60 lines (46 loc) · 1.59 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
# termtype
set -ga terminal-overrides '*:Ss=\E[%p1%d q:Se=\E[ q' # this is for the cursor shape
set-option -sa terminal-overrides ',xterm*:Tc'
# vi mode
set-window-option -g mode-keys vi
# Disable confirm on kill window
bind-key -T prefix & kill-window
# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
# Address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# Increase scrollback buffer size from 2000 to 50000 lines
set -g history-limit 50000
# Increase tmux messages display duration from 750ms to 4s
set -g display-time 4000
# Refresh 'status-left' and 'status-right' more often, from every 15s to 5s
set -g status-interval 5
# Upgrade $TERM
set -g default-terminal "screen-256color"
# Emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs
# Focus events enabled for terminals that support them
set -g focus-events on
# Super useful when using "grouped sessions" and multi-monitor setup
setw -g aggressive-resize on
set -g status-left-length 40
set -g status-justify centre
#############################
unbind C-b
set -g prefix C-a
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 s split-window -v
bind-key v split-window -h
bind-key r source-file $HOME/.tmux.conf
bind-key c kill-pane
bind-key t new-window
bind-key = select-layout even-vertical
bind-key a choose-session
bind-key H swap-pane -t -1
bind-key J swap-pane -t -1 -d
bind-key K swap-pane -t +1 -d
bind-key L swap-pane -t +1