-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
55 lines (43 loc) · 1.6 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
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
# tmux escape time higher than treshold
## tmux
#- ERROR: escape-time (500) is higher than 300ms
#- ADVICE:
#- Set escape-time in ~/.tmux.conf:
#- https://github.com/neovim/neovim/wiki/FAQ
set-option -sg escape-time 10
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Use Alt-vim keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# don't rename windows automatically
set-option -g allow-rename off
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
source ~/.tmux/gui.conf
# increase scrollback lines
set -g history-limit 10000
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @continuum-restore 'on'
# Disable jump to the bottom see: https://stackoverflow.com/questions/32374907/tmux-mouse-copy-mode-jumps-to-bottom
set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'