Created
January 23, 2015 22:15
-
-
Save aire-con-gas/52ea3172a952c4567d02 to your computer and use it in GitHub Desktop.
local tmux conf overrides
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
| # Add your local tmux config here | |
| # Copy-paste integration | |
| set-option -g default-command "reattach-to-user-namespace -l zsh" | |
| # 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" | |
| # Bind ']' to use pbpaste | |
| bind ] run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment