Created
January 7, 2015 16:26
-
-
Save jeremy-w/8cb845dfa26643fca03d to your computer and use it in GitHub Desktop.
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
set-option -g prefix C-e | |
unbind-key C-e | |
bind-key C-e send-prefix | |
set-window-option -g mode-keys vi | |
# Fix weirdness with OS X bootstrap namespaces and daemon. | |
# See https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard for details. | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
## Next bit from | |
## http://robots.thoughtbot.com/post/55885045171/tmux-copy-paste-on-os-x-a-better-future | |
## Works as of tmux 1.8. | |
# Use vim keybindings in copy mode | |
setw -g mode-keys vi | |
# 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" | |
## END thoughtbot ## | |
# Use vim motion keys for directional pane selection rather than arrow keys. | |
bind-key C-h select-pane -L | |
bind-key C-j select-pane -D | |
bind-key C-k select-pane -U | |
bind-key C-l select-pane -R # careful not to stomp last-window binding! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment