# ----------------------------------------------------------------------------- # This config is targeted for tmux 3.0+. # # Read the "Plugin Manager" section (bottom) before trying to use this config! # ----------------------------------------------------------------------------- set-environment -g PATH "/usr/local/bin:/bin:/usr/bin" # ----------------------------------------------------------------------------- # Global options # ----------------------------------------------------------------------------- # Enable color support inside of tmux. set-option -g default-terminal "tmux-256color" set -ga terminal-overrides ",*256col*:Tc" # Remove time delay when switching between vim modes set -s escape-time 0 # Allow opening multiple terminals to view the same session at different sizes. setw -g aggressive-resize on # Ensure window titles get renamed automatically. setw -g automatic-rename # Ensure window index numbers get reordered on delete. set-option -g renumber-windows on # Start windows and panes index at 1, not 0. set -g base-index 1 setw -g pane-base-index 1 # Enable full mouse support. set -g mouse on # ----------------------------------------------------------------------------- # Key Binds # ----------------------------------------------------------------------------- # Reload the tmux config. bind-key r source-file ~/.config/tmux/tmux.conf # Split panes. bind-key b split-window -v bind-key v split-window -h # ----------------------------------------------------------------------------- # Plugin Manager - https://github.com/tmux-plugins/tpm # Step 1) git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm # Step 2) Reload tmux if it's already started with `r # Step 3) Launch tmux and hit `I (capital i) to fetch any plugins # ----------------------------------------------------------------------------- # List of plugins. set -g @tpm_plugins ' \ tmux-plugins/tpm \ tmux-plugins/tmux-resurrect \ ' # Initialize TPM (keep this line at the very bottom of your tmux.conf). run '/usr/share/tmux-plugin-manager/tpm'