Created
July 27, 2015 16:11
-
-
Save cbankston/ccca646f6b51af5aed51 to your computer and use it in GitHub Desktop.
.tmux.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -g base-index 1 | |
setw -g mode-mouse on | |
set -sg escape-time 0 | |
setw -g xterm-keys on | |
# keybindings to make resizing easier | |
bind -n M-Left resize-pane -L | |
bind -n M-Right resize-pane -R | |
bind -n M-Up resize-pane -U | |
bind -n M-Down resize-pane -D | |
bind -n C-Left resize-pane -L 5 | |
bind -n C-Right resize-pane -R 5 | |
bind -n C-Up resize-pane -U 5 | |
bind -n C-Down resize-pane -D 5 | |
# Use Alt-arrow keys without prefix key to switch panes | |
bind -n C-h select-pane -L | |
bind -n C-l select-pane -R | |
bind -n C-k select-pane -U | |
bind -n C-j select-pane -D | |
# Shift arrow to switch windows | |
bind -n S-h previous-window | |
bind -n S-l next-window | |
# reload tmux config | |
bind r source-file ~/.tmux.conf | |
# easily toggle synchronization (mnemonic: e is for echo) | |
bind e setw synchronize-panes on | |
bind E setw synchronize-panes off | |
#maximizing and restoring panes. | |
unbind M-m | |
bind -n M-m new-window -d -n tmp \; swap-pane -s tmp.0 \; select-window -t tmp | |
unbind M-M | |
bind -n M-M last-window \; swap-pane -s tmp.0 \; kill-window -t tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment