-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
49 lines (36 loc) · 1.31 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
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
# if run as "tmux attach", create a session if one does not already exist
new-session -n $HOST
# increase scrollback buffer size
set -g history-limit 50000
# close pane with no confirmation
#bind-key x kill-pane
# remap prefix to Control + A (like GNU Screen)
#set -g prefix C-a
#unbind C-b
#bind C-a send-prefix
bind-key C-a last-window
# force a reload of the config file using Prefix+r
unbind r
bind r source-file ~/.tmux.conf
# pane movement
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
# Start windows and panes at 1, not 0
set -g base-index 1
setw -g pane-base-index 1
bind m set mouse on
bind M set mouse off
# tmux-ressurect options
set -g @resurrect-capture-pane-contents 'on'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# To install: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
run '~/.tmux/plugins/tpm/tpm'
set -g default-terminal 'screen-256color'
set-option -sa terminal-overrides ',xterm-256color:RGB'
set-option -g focus-events on