tmux.conf.save 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # sudo ln -s /usr/local/bin/tmux /usr/bin/tmux
  2. # set-option -sa terminal-overrides ",xterm*:Tc"
  3. set -g default-terminal screen-256color
  4. set -g mouse on
  5. set -g xterm-keys on
  6. unbind C-b
  7. set -g prefix C-Space
  8. bind C-Space send-prefix
  9. set-option -g detach-on-destroy off
  10. # Vim style pane selection
  11. bind h select-pane -L
  12. bind j select-pane -D
  13. bind k select-pane -U
  14. bind l select-pane -R
  15. # Start windows and panes at 1, not 0
  16. set -g base-index 1
  17. set -g pane-base-index 1
  18. set-window-option -g pane-base-index 1
  19. set-option -g renumber-windows on
  20. # Use Alt-arrow keys without prefix key to switch panes
  21. # bind -n M-H select# Pane resizing (vim-like, Shift+HJKL)
  22. bind -n M-h resize-pane -L 3
  23. bind -n M-j resize-pane -D 3
  24. bind -n M-k resize-pane -U 3
  25. bind -n M-l resize-pane -R 3
  26. u-pane -L
  27. # bind -n M-L select-pane -R
  28. # bind -n M-J select-pane -U
  29. # bind -n M-K select-pane -D
  30. # Shift arrow to switch windows
  31. # bind -n S-Left previous-window
  32. # bind -n S-Right next-window
  33. # Shift Alt vim keys to switch windows
  34. bind -n M-H previous-window
  35. bind -n M-L next-window
  36. # set -g @catppuccin_flavour 'mocha'
  37. set -g @plugin 'wfxr/tmux-power'
  38. set -g @plugin 'tmux-plugins/tpm'
  39. set -g @plugin 'tmux-plugins/tmux-sensible'
  40. set -g @plugin 'christoomey/vim-tmux-navigator'
  41. # set -g @plugin 'dreamsofcode-io/catppuccin-tmux'
  42. #
  43. set -g @plugin 'tmux-plugins/tmux-yank'
  44. set -g @plugin 'tmux-plugins/tmux-resurrect'
  45. set -g @plugin 'tmux-plugins/tmux-continuum'
  46. set -g @tmux_power_theme 'gold'
  47. set -g @plugin 'wfxr/tmux-net-speed'
  48. # set vi-mode
  49. set-window-option -g mode-keys vi
  50. # keybindings
  51. bind-key -T copy-mode-vi v send-keys -X begin-selection
  52. bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
  53. bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
  54. bind '"' split-window -v -c "#{pane_current_path}"
  55. bind % split-window -h -c "#{pane_current_path}"
  56. set -g @tmux_power_show_upload_speed true
  57. set -g @tmux_power_show_download_speed true
  58. set -g @tmux_power_show_web_reachable true
  59. # set -g @tmux_power_right_arrow_icon ''
  60. # set -g @tmux_power_left_arrow_icon ''
  61. set -g @tmux_power_upload_speed_icon '󰕒'
  62. set -g @tmux_power_download_speed_icon '󰇚'
  63. set -g @tmux_power_prefix_highlight_pos 'R'
  64. run '~/.config/tmux/plugins/tpm/tpm'