Arch 2025 rice. Also contains a newly inspired neovim config.
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.

52 lines
1.8 KiB

2 weeks 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 c new-window -c "#{pane_current_path}"
  12. bind % split-window -h -c "#{pane_current_path}"
  13. bind '"' split-window -v -c "#{pane_current_path}"
  14. bind -r k select-pane -U
  15. bind -r j select-pane -D
  16. bind -r h select-pane -L
  17. bind -r l select-pane -R
  18. bind -r r source-file ~/.tmux.conf
  19. set -g mouse on
  20. bind-key X \
  21. if-shell '[ "$(tmux display -p "#{session_many_attached}")" -gt 0 ]' {
  22. # the session is attached to multiple clients, so we can just switch the client to a different session.
  23. choose-session
  24. } {
  25. # we are the last client attached to this session; kill it.
  26. # we need to use `run-shell` to ensure that the current session number is expanded *before* we switch to the new session.
  27. confirm -p 'Kill #S (y/n)?' {
  28. choose-tree -s {
  29. run-shell 'tmux switch-client -t "%%" \; kill-session -t "#S"'
  30. }
  31. }
  32. }
  33. set -g @plugin 'tmux-plugins/tpm'
  34. set -g @plugin 'TanglingTreats/tmux-everforest' # Adds to the list of plugins
  35. set -g @tmux-everforest 'dark-medium' # Sets the option to select the theme. Also the default.
  36. # Other examples:
  37. # set -g @plugin 'github_username/plugin_name'
  38. # set -g @plugin 'github_username/plugin_name#branch'
  39. # set -g @plugin 'git@github.com:user/plugin'
  40. # set -g @plugin 'git@bitbucket.com:user/plugin'
  41. # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
  42. run '~/.tmux/plugins/tpm/tpm'
  43. #set-window-option -g status-left " #30S "