Last active
August 29, 2015 14:21
-
-
Save rmrio/b4a2a0a51b67b0adfc08 to your computer and use it in GitHub Desktop.
.tmux.conf
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
| # tmux a every time! | |
| new-session | |
| # enable touchpad | |
| set-window-option -g mode-mouse on | |
| # | |
| set -g history-limit 30000 | |
| # look good | |
| set -g default-terminal "screen-256color" | |
| # remap prefix to Control + a | |
| set -g prefix C-a | |
| unbind C-b | |
| bind C-a send-prefix | |
| # force a reload of the config file | |
| unbind r | |
| bind r source-file ~/.tmux.conf | |
| # quick pane cycling | |
| unbind ^A | |
| bind ^A select-pane -t :.+ | |
| # 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" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
brew install reattach-to-user-namespacefirst