# Tmux configuration for root # - Mouse enabled # - Plugins via TPM # - tmux-resurrect for save/restore sessions # Enable 256 colors and sane defaults set -g default-terminal "screen-256color" set -as terminal-overrides ',xterm-256color:RGB' # Enable mouse support (scroll, select panes, resize) set -g mouse on # Faster command sequences set -s escape-time 0 # Status bar tweaks set -g status-interval 5 set -g status-keys vi setw -g mode-keys vi # Split shortcuts bind | split-window -h bind - split-window -v unbind '"' unbind % # Reload config bind r source-file ~/.tmux.conf \; display-message "Reloaded ~/.tmux.conf" # ---------------------------------------------------------------------------- # Tmux Plugin Manager (TPM) and plugins # ---------------------------------------------------------------------------- # TPM repo set -g @plugin 'tmux-plugins/tpm' # Session save/restore set -g @plugin 'tmux-plugins/tmux-resurrect' # tmux-resurrect settings set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-dir '~/.tmux/resurrect' # Uncomment if you want automatic periodic saves with tmux-continuum # set -g @plugin 'tmux-plugins/tmux-continuum' # set -g @continuum-restore 'on' # Initialize TPM (keep this line at the very bottom of tmux.conf) run -b '~/.tmux/plugins/tpm/tpm'