Skip to content

Instantly share code, notes, and snippets.

@captainsafia
Created January 21, 2014 01:49
Show Gist options
  • Save captainsafia/8532990 to your computer and use it in GitHub Desktop.
Save captainsafia/8532990 to your computer and use it in GitHub Desktop.
# Sets the prefix key to C-a
unbind-key C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# Start numbering windows at 0
set -g base-index 0
# Set default color scheme
set -g default-terminal "screen-256color"
# Navigate panes using jk, and C+jk (no prefix)
bind-key -r j select-pane -t :.-
bind-key -r k select-pane -t :.+
bind-key -r C-j select-pane -t :.-
bind-key -r C-k select-pane -t :.+
# Navigate windows using hl, and C-hl (no prefix)
bind-key -r h select-window -t :-
bind-key -r l select-window -t :+
bind-key -r C-h select-window -t :-
bind-key -r C-l select-window -t :+
# Change window key bindings
bind-key - split-window -v
bind-key _ split-window -v
bind-key | split-window -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment