-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
62 lines (49 loc) · 1.51 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
# reload config file
bind r source-file ~/.tmux.conf
# Enable italics
set -g default-terminal 'tmux-256color'
set-option -sa terminal-overrides ',xterm-256color:RGB'
# Enable mouse scrolling and window resizing
set -g mouse on
# Loads of scrollback
set-option -g history-limit 50000
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum' # Continuously auto-save session
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-sessionist'
set -g @plugin 'tmux-plugins/tmux-yank' # Copy to system clipboard
set -g @plugin 'christoomey/vim-tmux-navigator'
# Use tmux-continuum automatically on tmux start
set -g @continuum-restore 'on'
# Restore pane contents
set -g @resurrect-capture-pane-contents 'on'
# Set up tmux-yank
set -g @yank_selection_mouse 'clipboard'
set -g @yank_action 'copy-pipe'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'
unbind M-1
unbind M-2
unbind M-3
unbind M-4
unbind M-5
unbind M-6
unbind M-7
unbind M-8
unbind M-9
unbind M-0
unbind M-h
unbind M-j
unbind M-k
unbind M-l
bind-key -n M-h previous-window
bind-key -n M-l next-window
# Alphabetically sort sessions
bind-key -n M-Enter choose-session -sZ -O name
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
# Easier searching
bind-key / copy-mode \; send-key ?