Skip to content
Browse files

Allow copy and paste to Mac OSX's clipboard

  • Loading branch information...
1 parent 75d41cc commit 50828cee791e24923a23e046038a125e44a56dac @wm wm committed Mar 27, 2012
Showing with 5 additions and 1 deletion.
  1. BIN bin/reattach-to-user-namespace
  2. +5 −1 tmux.conf
BIN bin/reattach-to-user-namespace
Binary file not shown.
6 tmux.conf
@@ -124,6 +124,10 @@ bind Escape copy-mode
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
+# Use this wrapper function so pbcopy and pbpaste work in tmux
+# NOTE: You need to install reattach-to-user-namespace pasteboard
+set-option -g default-command "reattach-to-user-namespace -l zsh"
bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind C-v run "tmux set-buffer - $(reattach-to-user-namespace pbpaste); tmux paste-buffer"

0 comments on commit 50828ce

Please sign in to comment.
Something went wrong with that request. Please try again.