Skip to content

Instantly share code, notes, and snippets.

@aaronheath
Created April 5, 2018 04:55
Show Gist options
  • Save aaronheath/31ad6dde18c3e29b67b89a163e28a8f5 to your computer and use it in GitHub Desktop.
Save aaronheath/31ad6dde18c3e29b67b89a163e28a8f5 to your computer and use it in GitHub Desktop.
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# 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
# Toggle syncronize
bind -n C-x setw synchronize-panes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment