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.

48 lines
1.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. set -s escape-time 0
  2. set -g focus-events on
  3. set-option -g status-style fg=white,bg=black
  4. set-window-option -g mode-keys vi
  5. set-option -g default-terminal "tmux-256color"
  6. set -sa terminal-overrides ",tmux-256color*:Tc"
  7. set-option -sa terminal-overrides ",xterm*:Tc"
  8. unbind-key C-b
  9. set-option -g prefix C-a
  10. bind-key C-a send-prefix
  11. bind -r k select-pane -U
  12. bind -r j select-pane -D
  13. bind -r h select-pane -L
  14. bind -r l select-pane -R
  15. bind -r r source-file ~/.tmux.conf
  16. set -g mouse on
  17. bind-key X \
  18. if-shell '[ "$(tmux display -p "#{session_many_attached}")" -gt 0 ]' {
  19. # the session is attached to multiple clients, so we can just switch the client to a different session.
  20. choose-session
  21. } {
  22. # we are the last client attached to this session; kill it.
  23. # we need to use `run-shell` to ensure that the current session number is expanded *before* we switch to the new session.
  24. confirm -p 'Kill #S (y/n)?' {
  25. choose-tree -s {
  26. run-shell 'tmux switch-client -t "%%" \; kill-session -t "#S"'
  27. }
  28. }
  29. }
  30. set -g @plugin 'tmux-plugins/tpm'
  31. # set -g @plugin 'odedlaz/tmux-onedark-theme'
  32. set -g @plugin 'catppuccin/tmux'
  33. # Other examples:
  34. # set -g @plugin 'github_username/plugin_name'
  35. # set -g @plugin 'github_username/plugin_name#branch'
  36. # set -g @plugin 'git@github.com:user/plugin'
  37. # set -g @plugin 'git@bitbucket.com:user/plugin'
  38. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  39. run '~/.tmux/plugins/tpm/tpm'
  40. #set-window-option -g status-left " #30S "