From 62919a4b6e3e492aa0183c21f79be58652dc4af0 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 15 Aug 2018 23:27:43 +0900 Subject: [PATCH] Enable tmux pasteboard config --- tmux.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tmux.conf b/tmux.conf index 5338897..39444d7 100644 --- a/tmux.conf +++ b/tmux.conf @@ -27,6 +27,10 @@ setw -g mode-keys vi #setw -g mode-mouse off #set -g default-command /bin/bash +# Use pasteboard on MacOS +run-shell 'test "`uname`" = Darwin && tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"' +run-shell 'test "`uname`" = Darwin && tmux bind-key "]" run "pbpaste | tmux load-buffer - && tmux paste-buffer"' + #set -g default-path "$HOME" # try to set title of terminal tmux is running on @@ -48,7 +52,3 @@ set -g message-fg black setw -g window-status-current-bg white setw -g window-status-current-fg black #setw -g window-status-attr bold - - -#run-shell 'tmux bind-key -T copy-mode-vi "Enter" send-keys -X copy-pipe-and-cancel "pbcopy"' -#run-shell 'tmux bind-key bind-key "]" run "pbpaste | tmux load-buffer - && tmux paste-buffer"'