# remap prefix from 'C-b' to 'C-a' unbind C-b set-option -g prefix C-a bind-key C-a send-prefix # 0 is too far from Ctrl-a. set -g base-index 1 # 1-indexed panes to match the windows. setw -g pane-base-index 1 # Look nice. set -g default-terminal screen-256color # split panes using | and - bind | split-window -h bind - split-window -v unbind '"' unbind % # reload config file (change file location to your the tmux.conf you want to use) bind r source-file ~/.tmux.conf\; display ' Reloaded tmux config.' # switch panes using Alt-arrow without prefix 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 # Shift + arrow key to move between windows. bind-key -n S-Left previous-window bind-key -n S-Right next-window