# ~/.tmux.conf # --- General Settings --- # Set the main prefix to C-a set-option -g prefix C-a # Set a secondary, "legacy" prefix to C-b for an easier transition set-option -g prefix2 C-b # Still unbind the default C-b binding for the "send-prefix" command, # as we want our primary prefix (C-a) to handle that. unbind C-b bind-key C-a send-prefix # Start windows and panes at 1, not 0 set -g base-index 1 setw -g pane-base-index 1 # Enable mouse mode (scrolling, pane selection) set -g mouse on # --- Keybindings --- # More intuitive split keys (current path is preserved) bind | split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" unbind '"' unbind % # Quick pane navigation with Alt + Arrow keys bind -n M-Left select-pane -L bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D # --- Plugins with TPM --- set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' # Sensible default settings set -g @plugin 'catppuccin/tmux' # Your theme # --- Theme Configuration (Optional) --- set -g @catppuccin_flavour 'mocha' # --- Initialize TPM (MUST BE LAST) --- run '~/.tmux/plugins/tpm/tpm'