You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.6 KiB
42 lines
1.6 KiB
set -g @plugin 'tmux-plugins/tpm'
|
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
|
set -g @plugin 'tmux-plugins/tmux-pain-control'
|
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
|
set -g @plugin 'tmux-plugins/tmux-sessionist'
|
|
|
|
## Plugin configuration
|
|
set -g @continuum-restore 'on'
|
|
set -g @continuum-save-interval '5'
|
|
set -g @resurrect-capture-pane-contents 'on'
|
|
set -g @yank_selection 'primary'
|
|
set -g @man-size '40%'
|
|
set -g @man-orientation 'h'
|
|
set -g @man-shell-interactive 'off'
|
|
|
|
set -g default-terminal "xterm-256color"
|
|
|
|
# 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
|
|
|
|
## Mouse On by default
|
|
set -g mouse on
|
|
|
|
## Scoll for vim
|
|
bind -n WheelUpPane if "echo #{pane_current_command} | grep vim" "select-pane -t =; send-keys -N 4 Up" "select-pane -t =; copy-mode -e; send-keys -M"
|
|
bind -n WheelDownPane if "echo #{pane_current_command} | grep vim" "select-pane -t =; send-keys -N 4 Down" "select-pane -t =; send-keys -M"
|
|
# And additional scrolling things for tmux copy-mode
|
|
bind-key -T copy-mode-vi WheelUpPane send-keys -X halfpage-up
|
|
bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down
|
|
|
|
# Tmux config reload
|
|
bind r source-file ~/.tmux.conf
|
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
|
|
if "test ! -d ~/.tmux/plugins/tpm" \
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
|
run '~/.tmux/plugins/tpm/tpm'
|