Skip to content

Instantly share code, notes, and snippets.

@WMahoney09
Created April 13, 2019 12:49
Show Gist options
  • Save WMahoney09/a30f1efcb41bdedc341cb4b1d705f678 to your computer and use it in GitHub Desktop.
Save WMahoney09/a30f1efcb41bdedc341cb4b1d705f678 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 -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
unbind '"'
unbind %
# switch panes using C-HJKL
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
# enable mouse for scroll and pane selection/manipulation
set -g mouse on
bind v set-window-option mouse
# colors?
#set -g default-terminal "screen-256color"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment