-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
59 lines (43 loc) · 1.33 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
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# terminal clear screen
bind C-l send-keys 'C-l'
# kill session
bind q confirm-before "kill-session"
# turn on mouse
set -g mouse on
# turn off clipboard
set-option -g set-clipboard off
# no delay between switching panes
set-option -g repeat-time 0
# set 256-bit color as default
set -g default-terminal "xterm-256color"
set -ga terminal-overrides ",*256col*:Tc"
# smart pane switching with awareness of vim splits
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# shortcut to respawn/reset a pane
bind r respawn-pane -k
# unbind Ctrl-s
unbind C-s
# key binding to toggle synchronize input to panes
bind i set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
# tmux-plugins
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.tmux/plugins/'
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
# tmux-resurrect
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
# tmux-continuum
set -g @continuum-restore 'on'
# tmux-yank
set -g @plugin 'tmux-plugins/tmux-yank'
# vim-tmux-navigator
set -g @plugin 'christoomey/vim-tmux-navigator'
# initialize tmux plugin manager
run -b '~/.tmux/plugins/tpm/tpm'