Created
February 7, 2014 08:08
-
-
Save igkuz/8858872 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#### Tmux configuration file #### | |
# \; - used for separating commands on binding | |
# Right colors for tmux | |
set -g default-terminal 'screen-256color' | |
# remapping command prefix to "Ctrl + a" and unbind "Ctrl+b" | |
set -g prefix C-a | |
unbind C-b | |
# Mouse on in tmux | |
setw -g mode-mouse on | |
set -g mouse-select-pane on | |
set -g mouse-resize-pane on | |
# set -g mouse-select-window on | |
# Deafult delay time to 1 for vim editor not to be disturbed | |
set -s escape-time 1 | |
# The 1st window and 1st pane has index 1 | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Reload tmux configuration | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Send Prefix command to programs running in tmux session | |
# Need to press "Ctrl+a" twice | |
bind C-a send-prefix | |
# Fast splitting windows | |
bind | split-window -h | |
bind - split-window -v | |
# Moving across the windows like in vim | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Cycle over windows | |
bind -r C-h select-window -t :- | |
bind -r C-l select-window -t :+ | |
# Resize panes by 5 lines repeatedly, default repeat time 500ms | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment