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.

45 lines
1.7 KiB

  1. set -g @plugin 'tmux-plugins/tpm'
  2. set -g @plugin 'tmux-plugins/tmux-sensible'
  3. set -g @plugin 'tmux-plugins/tmux-resurrect'
  4. set -g @plugin 'tmux-plugins/tmux-continuum'
  5. set -g @plugin 'tmux-plugins/tmux-pain-control'
  6. set -g @plugin 'tmux-plugins/tmux-yank'
  7. set -g @plugin 'tmux-plugins/tmux-sessionist'
  8. ## Plugin configuration
  9. set -g @continuum-restore 'on'
  10. set -g @continuum-save-interval '5'
  11. set -g @resurrect-capture-pane-contents 'on'
  12. set -g @resurrect-processes 'su'
  13. set -g @yank_selection 'primary'
  14. set -g @man-size '40%'
  15. set -g @man-orientation 'h'
  16. set -g @man-shell-interactive 'off'
  17. set -g default-terminal "xterm-256color"
  18. # switch panes using Alt-arrow without prefix
  19. bind -n M-Left select-pane -L
  20. bind -n M-Right select-pane -R
  21. bind -n M-Up select-pane -U
  22. bind -n M-Down select-pane -D
  23. ## Mouse On by default
  24. set -g mouse on
  25. ## Scoll for vim
  26. 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"
  27. bind -n WheelDownPane if "echo #{pane_current_command} | grep vim" "select-pane -t =; send-keys -N 4 Down" "select-pane -t =; send-keys -M"
  28. # And additional scrolling things for tmux copy-mode
  29. bind-key -T copy-mode-vi WheelUpPane send-keys -X halfpage-up
  30. bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down
  31. # Tmux config reload
  32. bind r source-file ~/.tmux.conf
  33. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  34. if-shell "test ! -d ~/.tmux/plugins/tpm" \
  35. "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'; run '~/.tmux/plugins/tpm/tpm'; run '~/.tmux/plugins/tpm/bin/install_plugins'; run '~/.tmux/plugins/tpm/tpm'" \
  36. "run '~/.tmux/plugins/tpm/tpm'"
  37. # vim: se ft=tmux :