Skip to content

Instantly share code, notes, and snippets.

@banhill
Created April 18, 2018 09:32
Show Gist options
  • Save banhill/198a006eceb1ef72e75201c1b5eeed4a to your computer and use it in GitHub Desktop.
Save banhill/198a006eceb1ef72e75201c1b5eeed4a to your computer and use it in GitHub Desktop.
basic tmux conf
# 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 %
# shortcut to synchronize-panes
bind s set-window-option synchronize-panes
# reload config file (change file location to your the tmux.conf you want to use)
bind r source-file ~/.tmux.conf
# vim-like navigation
bind j select-pane -L
bind k select-pane -D
bind i select-pane -U
bind l select-pane -R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment