Skip to content

Instantly share code, notes, and snippets.

@levicook
Created September 11, 2012 19:08
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 levicook/3701036 to your computer and use it in GitHub Desktop.
Save levicook/3701036 to your computer and use it in GitHub Desktop.
tmux.conf
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind | split-window -h # C-a | to create horizontal pane
bind - split-window -v # C-a - to create vertical pane
# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes - C-a <arrow key>
unbind Up
bind Up resize-pane -U 4
unbind Down
bind Down resize-pane -D 4
unbind Left
bind Left resize-pane -L 10
unbind Right
bind Right resize-pane -R 10
set -g default-terminal "screen-256color"
setw -g mode-keys vi # enable vi keys
set -g default-command "/bin/bash --login"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment