Created
May 7, 2012 09:30
-
-
Save yundt/2626907 to your computer and use it in GitHub Desktop.
my .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
# remap tmux prefix | |
set -g prefix C-a | |
# use "v" and "s" to do vertical/horizontal splits, like vim | |
bind s split-window -v | |
bind v split-window -h | |
# use the vim motion keys to move between panes | |
bind h select-pane -L | |
bind j select-pane -D | |
bind k select-pane -U | |
bind l select-pane -R | |
set -g default-command "reattach-to-user-namespace -l zsh" | |
set -g mode-mouse on | |
setw -g mouse-select-window on | |
setw -g mouse-select-pane on | |
setw -g mouse-resize-pane on | |
# Copy mode | |
setw -g mode-keys vi | |
bind ` copy-mode | |
unbind [ | |
unbind p | |
bind p paste-buffer | |
bind -t vi-copy v begin-selection | |
bind -t vi-copy y copy-selection | |
bind -t vi-copy Escape cancel | |
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment