diff --git a/.tmux.conf b/.tmux.conf index e2eed09..020f992 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -108,3 +108,9 @@ bind h select-pane -L bind j select-pane -D bind k select-pane -U bind l select-pane -R + +# paste +# getting tmux to copy a buffer to system clipboard +set-option -g default-command "reattach-to-user-namespace -l zsh" # or bash... +bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy" \; display-message "Copied tmux buffer to system clipboard" +bind C-v run "reattach-to-user-namespace pbpaste | tmux load-buffer - && tmux paste-buffer"