Skip to content

Instantly share code, notes, and snippets.

@austenito
Last active December 18, 2015 16:09
Show Gist options
  • Save austenito/5808986 to your computer and use it in GitHub Desktop.
Save austenito/5808986 to your computer and use it in GitHub Desktop.
tmux conf for copying and pasting
# fixes mac os-x clipboad -> https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
# vi mode
setw -g mode-keys vi
unbind p
bind p paste-buffer
bind -t vi-copy v begin-selection
bind -t vi-copy c copy-selection
bind y send-keys c\;\
run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
set-window-option -g xterm-keys on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment