Tmux Config

# C-b is "back 1 char" in emacs
# Unbind it as the Tmux prefix to not conflict with emacs
unbind-key C-b
set-option -g prefix C-]

# If we change our .tmux.conf and want to reload it quickly
bind r source-file ~/.tmux.conf

# Use vim movement keys for moving between panes
unbind-key j
bind j select-pane -D
unbind-key k
bind k select-pane -U
unbind-key h
bind h select-pane -L
unbind-key l
bind l select-pane -R

# Quickly resize panes
# The -r lets you repeat the action without 
# typing the prefix each time
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5

bind -r M-j resize-pane -D
bind -r M-k resize-pane -U
bind -r M-h resize-pane -L
bind -r M-l resize-pane -R

# Easier to remember than " and %
bind-key v split-window -h
bind-key s split-window -v

bind -r C-o rotate-window

# Enable vim-style bindings in visual mode
set-window-option -g mode-keys vi

# Increase history limit
set -g history-limit 50000
Show Comments