tmux.conf 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. set -g default-terminal "tmux-256color"
  2. set -g mouse on
  3. set -g xterm-keys on
  4. unbind C-b
  5. set -g prefix C-Space
  6. bind C-Space send-prefix
  7. set-option -g detach-on-destroy off
  8. # Vim-style pane navigation
  9. bind h select-pane -L
  10. bind j select-pane -D
  11. bind k select-pane -U
  12. bind l select-pane -R
  13. # Resize panes (Alt+HJKL)
  14. bind -n M-h resize-pane -L 3
  15. bind -n M-j resize-pane -D 3
  16. bind -n M-k resize-pane -U 3
  17. bind -n M-l resize-pane -R 3
  18. # Window + pane indexing
  19. set -g base-index 1
  20. set -g pane-base-index 1
  21. set-window-option -g pane-base-index 1
  22. set -g renumber-windows on
  23. # Window switching (Alt+Shift+H/L)
  24. bind -n M-H previous-window
  25. bind -n M-L next-window
  26. # vi-mode copy
  27. set-window-option -g mode-keys vi
  28. bind-key -T copy-mode-vi v send-keys -X begin-selection
  29. bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
  30. bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
  31. # Split windows in current path
  32. bind '"' split-window -v -c "#{pane_current_path}"
  33. bind % split-window -h -c "#{pane_current_path}"
  34. # plugins live here (this matches reality)
  35. set-environment -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.config/tmux/plugins"
  36. # TPM + other plugins
  37. set -g @plugin 'tmux-plugins/tpm'
  38. set -g @plugin 'tmux-plugins/tmux-sensible'
  39. set -g @plugin 'christoomey/vim-tmux-navigator'
  40. set -g @plugin 'tmux-plugins/tmux-yank'
  41. set -g @plugin 'tmux-plugins/tmux-resurrect'
  42. set -g @plugin 'tmux-plugins/tmux-continuum'
  43. set -g @plugin 'wfxr/tmux-power'
  44. set -g @plugin 'wfxr/tmux-net-speed'
  45. # tmux-power options (must be BEFORE sourcing)
  46. set -g @tmux_power_theme 'gold'
  47. set -g @tmux_power_show_upload_speed true
  48. set -g @tmux_power_show_download_speed true
  49. set -g @tmux_power_show_web_reachable true
  50. set -g @tmux_power_upload_speed_icon '󰕒'
  51. set -g @tmux_power_download_speed_icon '󰇚'
  52. set -g @tmux_power_prefix_highlight_pos 'R'
  53. # TPM init
  54. run '~/.config/tmux/plugins/tpm/tpm'