From 7808fd53d3d0578e22759b45c88a27012b4c3ce4 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Mon, 22 Jul 2013 22:37:59 +0200 Subject: [PATCH] on Mac OS X, copy from latest buffer to system clipboard with prefix-y --- .tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.tmux.conf b/.tmux.conf index ddf866c..98a1a94 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -121,6 +121,9 @@ bind -t vi-copy Escape cancel bind -t vi-copy H start-of-line bind -t vi-copy L end-of-line +# copy to Mac OSX pasteboard +if 'type -p reattach-to-user-namespace' 'bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"' + # -- user defined --------------------------------------------------------------