-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.conf
82 lines (71 loc) · 2.32 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
71
72
73
74
75
76
77
78
79
80
81
unbind ,
unbind .
unbind c
unbind a
unbind H
unbind J
unbind K
unbind L
unbind x
unbind q
unbind Q
unbind t
unbind C-p
unbind C-s
# List of plugins
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-resurrect \
'
run-shell '~/.tmux/plugins/tpm/tpm'
set -g @resurrect-save 'C-p'
set -g @resurrect-restore 'C-r'
# App only to use latest bash installed by Homebrew
set -g default-shell /usr/local/bin/bash
set-option -g prefix C-s # C-a for perfix just like screen
# Disable this because 256 not present on old systems like CentOS5
set -g default-terminal "screen-256color"
# This is a common problem in tmux / screen (see also tmux/#131).
# The corresponding timeout needs to be tweaked to a low value (10-20ms).
set-option -sg escape-time 10
set-window-option -g mode-keys vi
set-option -g status-keys vi
set-option -g history-limit 5000
set-option -g detach-on-destroy off
bind-key C-s last-window
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind a set-window-option synchronize-panes
bind-key r source-file ~/.tmux.conf\; display-message " ✱ ~/.tmux.conf is reloaded"
bind-key C-h select-layout even-horizontal
bind-key C-v select-layout even-vertical
bind-key C-t select-layout tiled
bind-key \\ split-window -h
bind-key - split-window -v
bind-key w new-window
bind-key c new-session
bind-key x confirm-before kill-window
bind-key q confirm-before kill-session
bind-key Q confirm-before kill-server
bind-key t choose-tree
# We don't need this one in the version above 2.2
# set-option -g status-utf8 on
set-option -g status-style bg=blue
#set-option -g status-fg colour8
set-option -g status-left ' #[bold]❐ #S#[default] ⡇'
set-option -g status-right '#[bold]#(whoami) ● #H#[default] '
set-option -g status-right-length 60
set-option -g status-left-length 60
set-window-option -g window-status-style bg=colour166
set-window-option -g window-status-style fg=colour15
set-window-option -g window-status-format ' #I #W '
# The following doesn't work in 2.9
#set-window-option -g window-status-current-attr bold
#set-window-option -g window-status-current-format ' #I #W '
#set-window-option -g window-status-attr bold