-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.tmux.conf
More file actions
70 lines (55 loc) · 1.87 KB
/
.tmux.conf
File metadata and controls
70 lines (55 loc) · 1.87 KB
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
# Reload source conf
unbind r
bind r source-file ~/.tmux.conf
# Color improvements
set -g default-terminal "screen-256color"
set -ag terminal-overrides ",xterm-256color:RGB"
# Set UTF-8 encoding for status bar
set -g status-utf8 on
set -g utf8 on
# Preferred prefix remap
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
# Window splits
unbind %
bind | split-window -h
unbind '"'
bind - split-window -v
# Window sizing
bind -r j resize-pane -D 5
bind -r k resize-pane -U 5
bind -r l resize-pane -R 5
bind -r h resize-pane -L 5
bind -r m resize-pane -Z
# Window order like a human
set -g base-index 1
set-window-option -g pane-base-index 1
# Re-number windows sequentially after closing any of them
set -g renumber-windows on
# Allow mouse scroll
set -g mouse on
# Behave like vim
set-window-option -g mode-keys vi
# Copy: <prefix> + [, navigate with vi bindings, v to start copying (y toggle box mode), Enter to copy text, paste into buffer with <prefix> + P
set -g set-clipboard off
bind P paste-buffer
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi y send -X rectangle-toggle
unbind -T copy-mode-vi Enter
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel 'pbcopy'
unbind -T copy-mode-vi MouseDragEnd1Pane
# Use TPM
set -g @plugin 'tmux-plugins/tpm'
# TPM supported plugins
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'egel/tmux-gruvbox'
set -g @plugin 'tmux-plugins/tmux-resurrect' # persist tmux sessions after computer restart
set -g @plugin 'tmux-plugins/tmux-continuum' # automatically saves sessions for you every 15 minutes
# TPM plugin settings
set -g @resurrect-capture-pane-contents 'on'
set -g @continuum-restore 'on'
set -g @tmux-gruvbox 'dark' # or 'light'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'