set -s escape-time 0 set -g focus-events on set-option -g status-style fg=white,bg=black set-window-option -g mode-keys vi set-option -g default-terminal "tmux-256color" set -sa terminal-overrides ",tmux-256color*:Tc" set-option -sa terminal-overrides ",xterm*:Tc" unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix bind -r k select-pane -U bind -r j select-pane -D bind -r h select-pane -L bind -r l select-pane -R bind -r r source-file ~/.tmux.conf set -g mouse on bind-key X \ if-shell '[ "$(tmux display -p "#{session_many_attached}")" -gt 0 ]' { # the session is attached to multiple clients, so we can just switch the client to a different session. choose-session } { # we are the last client attached to this session; kill it. # we need to use `run-shell` to ensure that the current session number is expanded *before* we switch to the new session. confirm -p 'Kill #S (y/n)?' { choose-tree -s { run-shell 'tmux switch-client -t "%%" \; kill-session -t "#S"' } } } set -g @plugin 'tmux-plugins/tpm' # set -g @plugin 'odedlaz/tmux-onedark-theme' set -g @plugin 'catppuccin/tmux' # Other examples: # set -g @plugin 'github_username/plugin_name' # set -g @plugin 'github_username/plugin_name#branch' # set -g @plugin 'git@github.com:user/plugin' # set -g @plugin 'git@bitbucket.com:user/plugin' # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm' #set-window-option -g status-left " #30S "