Created
January 15, 2014 06:16
-
-
Save koorgoo/8431663 to your computer and use it in GitHub Desktop.
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
# Change Prefix to Alt-a. | |
# set -g prefix M-a | |
# Window index starts from 1 (default 0). | |
set -g base-index 1 | |
# `set-window-option`. | |
# Pane index starts from 1 (default 0). | |
setw -g pane-base-index 1 | |
# Prefix-r to reload config file and notify. | |
# bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# No Prefix is needed, just Ctrl-r to reload config file. | |
# bind-key -n C-r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Window splitting. | |
bind | split-window -h | |
bind - split-window -v | |
# Panel navigation (like in Vim). | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Window cycling. | |
# Repeat limit 500 ms by default. | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# Pane resizing. | |
# Repeat limit 500 ms by default. | |
bind -r H resize-pane -L 5 | |
bind -r J resize-pane -D 5 | |
bind -r K resize-pane -U 5 | |
bind -r L resize-pane -R 5 | |
# Mouse handling. | |
# Enable the mouse entirely: | |
# setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
set -g mouse-select-window on | |
# Disable the mouse entirely: | |
# setw -g mode-mouse off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment