tmux_old.conf 2.2 KB

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