Created
July 25, 2014 19:31
-
-
Save jsutlovic/830b018f0e12d06bf71a to your computer and use it in GitHub Desktop.
My tmux config
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
# Use something easier to type as the prefix. | |
set -g prefix C-f | |
unbind C-b | |
bind C-f send-prefix | |
# Less stretching to get to the first item. | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
# Reload the config. | |
bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" | |
# 256 colors please | |
set -g default-terminal "screen-256color" | |
# Window switching alt+left/right | |
bind-key -n M-Right next | |
bind-key -n M-Left prev | |
# Pane movement | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
# Pane resizing | |
bind -r Left resize-pane -L 2 | |
bind -r Down resize-pane -D 2 | |
bind -r Up resize-pane -U 2 | |
bind -r Right resize-pane -R 2 | |
# switch windows alt+number | |
bind-key -n M-1 select-window -t 1 | |
bind-key -n M-2 select-window -t 2 | |
bind-key -n M-3 select-window -t 3 | |
bind-key -n M-4 select-window -t 4 | |
bind-key -n M-5 select-window -t 5 | |
bind-key -n M-6 select-window -t 6 | |
bind-key -n M-7 select-window -t 7 | |
bind-key -n M-8 select-window -t 8 | |
bind-key -n M-9 select-window -t 9 | |
# Let vim play well with tmux | |
set-window-option -g xterm-keys on | |
# Mouse scrolling in copy mode | |
setw -g mode-mouse on | |
# Pretty tab bar | |
source '/home/vagrant/.powerline/powerline/bindings/tmux/powerline.conf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment