|
|
|
@ -44,6 +44,20 @@ bind -T copy-mode-vi PageUp send-keys -X page-up
|
|
|
|
|
bind -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 2 scroll-up
|
|
|
|
|
bind -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 2 scroll-down
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# split panes using | and -
|
|
|
|
|
bind | split-window -h
|
|
|
|
|
bind - split-window -v
|
|
|
|
|
unbind '"'
|
|
|
|
|
unbind %
|
|
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# wrap default shell in reattach-to-user-namespace if available
|
|
|
|
|
# there is some hack with `exec & reattach`, credits to "https://github.com/gpakosz/.tmux"
|
|
|
|
|
# don't really understand how it works, but at least window are not renamed to "reattach-to-user-namespace"
|
|
|
|
@ -73,3 +87,12 @@ bind -T copy-mode-vi MouseDown1Pane select-pane \;\
|
|
|
|
|
# iTerm2 works with clipboard out of the box, set-clipboard already set to "external"
|
|
|
|
|
# tmux show-options -g -s set-clipboard
|
|
|
|
|
# set-clipboard on|external
|
|
|
|
|
|
|
|
|
|
# List of plugins
|
|
|
|
|
set -g @plugin 'tmux-plugins/tpm'
|
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
|
|
|
|
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
|
|
|
run '~/.tmux/plugins/tpm/tpm'
|
|
|
|
|
|
|
|
|
|
set -g @plugin "arcticicestudio/nord-tmux"
|
|
|
|
|