Skip to content

Instantly share code, notes, and snippets.

@telmotrooper
Created August 12, 2019 18:27
Show Gist options
  • Save telmotrooper/23aa20611e20e25c35cc0652b804eaba to your computer and use it in GitHub Desktop.
Save telmotrooper/23aa20611e20e25c35cc0652b804eaba to your computer and use it in GitHub Desktop.
tmux
# Remap prefix from 'Ctrl + B' to 'Ctrl + 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
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
# Enable names for panes
set -g pane-border-status top
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment