Skip to content

Instantly share code, notes, and snippets.

@jwthomp
Created March 2, 2016 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwthomp/950a5bb48310da1a562f to your computer and use it in GitHub Desktop.
Save jwthomp/950a5bb48310da1a562f to your computer and use it in GitHub Desktop.
# Switch prefix from C-b to C-b
set -g prefix C-a
unbind C-b
# Update delay time to be very short
set -s escape-time 1
# Set the base-index to 1 instead of 0, so we can use prefix 1 to get to the first window
set -g base-index 1
setw -g pane-base-index 1
# Set prefix r to reload ~/tmux.conf file
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Pass prefix C-a through to underlying app if we press C-a twice in a row. This lets you get a C-a to vi, etc..
bind C-a send-prefix
# Preix | splits vertical, and - splits horizontal
bind | split-window -h
bind - split-window -v
# bind hjkl to move through panges
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# bind capital HJKL to resize panges
bind H resize-pane -L 5
bind J resize-pane -D 5
bind K resize-pane -U 5
bind L resize-pane -R 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment