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.

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