-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
50 lines (39 loc) · 1.32 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
# shortcuts
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
bind S set-window-option synchronize-panes \; display "Toggled Synchronize Panes!"
# VIM style pane switching
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Eaxy create window from current directory
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# tmux messages are displayed for 4 seconds
set -g display-time 4000
# vi mode for buffer(copy mode)
setw -g mode-keys vi
set -g default-terminal "screen-256color"
set -g xterm-keys on
# increase scrollback buffer
set -g history-limit 50000
# for neovim
set -sg escape-time 10
# list of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'jbnicolai/tmux-fpp'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'laktak/extrakto'
set -g @plugin 'rickstaa/tmux-notify'
# for restoring vim sessions
set -g @resurrect-strategy-vim 'session'
# for neovim
set -g @resurrect-strategy-nvim 'session'
if-shell 'env "$POWERLINE_CONFIG_COMMAND" tmux setup' '' 'run-shell "powerline-config tmux setup"'
run '~/.tmux/plugins/tpm/tpm'