-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
37 lines (30 loc) · 1.15 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
# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'sainnhe/tmux-fzf'
# session
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @resurrect-capture-pane-contents 'on'
# Address vim mode switching delay (http://superuser.com/a/252717/65504)
# remove if tmux-sensible installed
# set -s escape-time 0
# switch session
bind 'S' display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
# window
bind '-' split-window -c "#{pane_current_path}"
bind '|' split-window -h -c "#{pane_current_path}"
bind 'c' new-window -c "#{pane_current_path}"
# https://github.com/sainnhe/tmux-fzf/issues/6#issuecomment-578750879
bind 'W' run-shell -b "~/.tmux/plugins/tmux-fzf/scripts/window.sh switch"
# panel
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# toggle first pane
bind 'A' resize-pane -Z -t 0
# copy mode
setw -g mode-keys vi
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'