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.

41 lines
1.4 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
  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 source-file ~/.tmux.conf
  10. bind-key X \
  11. if-shell '[ "$(tmux display -p "#{session_many_attached}")" -gt 0 ]' {
  12. # the session is attached to multiple clients, so we can just switch the client to a different session.
  13. choose-session
  14. } {
  15. # we are the last client attached to this session; kill it.
  16. # we need to use `run-shell` to ensure that the current session number is expanded *before* we switch to the new session.
  17. confirm -p 'Kill #S (y/n)?' {
  18. choose-tree -s {
  19. run-shell 'tmux switch-client -t "%%" \; kill-session -t "#S"'
  20. }
  21. }
  22. }
  23. set -g @plugin 'tmux-plugins/tpm'
  24. set -g @plugin 'tmux-plugins/tmux-sensible'
  25. # set -g @plugin 'odedlaz/tmux-onedark-theme'
  26. set -g @plugin 'catppuccin/tmux'
  27. # Other examples:
  28. # set -g @plugin 'github_username/plugin_name'
  29. # set -g @plugin 'github_username/plugin_name#branch'
  30. # set -g @plugin 'git@github.com:user/plugin'
  31. # set -g @plugin 'git@bitbucket.com:user/plugin'
  32. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  33. run '~/.tmux/plugins/tpm/tpm'
  34. #set-window-option -g status-left " #30S "