Created
October 22, 2014 08:20
-
-
Save Zhann/d1b9dc776321bdfd5c3e 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
setw -g mode-keys vi | |
# use 256 term for pretty colors | |
set -g default-terminal "screen-256color" | |
# increase scroll-back history | |
set -g history-limit 100000 | |
# decrease command delay (increases vim responsiveness) | |
set -sg escape-time 1 | |
# increase repeat time for repeatable commands | |
set -g repeat-time 1000 | |
# start window index at 1 | |
set -g base-index 1 | |
# start pane index at 1 | |
setw -g pane-base-index 1 | |
# re-number windows when one is closed | |
set -g renumber-windows on | |
# enable pbcopy and pbpaste | |
# https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/blob/master/README.md | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
########################### | |
# Key Bindings | |
########################### | |
# pane splitting | |
unbind % | |
bind | split-window -h | |
bind - split-window -v | |
# copy with 'enter' or 'y' and send to mac os clipboard: http://goo.gl/2Bfn8 | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# create 'v' alias for selecting text | |
bind-key -t vi-copy v begin-selection | |
# paste | |
unbind C-p | |
bind C-p paste-buffer | |
# Sync panes | |
bind S setw synchronize-panes | |
# resize panes | |
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 | |
# quickly switch panes | |
unbind ^J | |
bind ^J select-pane -t :.+ | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment