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.

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