Created
March 31, 2015 17:37
-
-
Save vagmi/82f28d1251074cc999a0 to your computer and use it in GitHub Desktop.
My Tmux config
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 xterm-keys on | |
set-option -g default-terminal "screen-256color" | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
set-option -g set-titles on | |
bind-key | split-window -h | |
bind-key - split-window | |
setw -g mode-keys vi | |
set -sg escape-time 0 | |
# Setup 'v' to begin selection as in Vim | |
bind-key -t vi-copy v begin-selection | |
bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
# Update default binding of `Enter` to also use copy-pipe | |
unbind -t vi-copy Enter | |
bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy" | |
# Bind ']' to use pbpaste | |
bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" | |
unbind-key j | |
bind-key j select-pane -D | |
unbind-key k | |
bind-key k select-pane -U | |
unbind-key h | |
bind-key h select-pane -L | |
unbind-key l | |
bind-key l select-pane -R | |
set -g mode-mouse on | |
set -g mouse-resize-pane on | |
set -g mouse-select-pane on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment