From 8250a1f3ecc4cad3d6b1ce184ca331e867a8a3b9 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Wed, 19 Apr 2017 22:57:03 +0300 Subject: [PATCH] .tmux.conf: fix copy/paste commands --- .tmux.conf | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 9d13711..b2089ed 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -88,8 +88,9 @@ bind-key | split-window -h bind-key - split-window -v # Copy tmux copy buffer to X clipboard -# bind C-y run "tmux save-buffer - | xclip -i" -bind C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b" +# bind C-y run-shell "tmux save-buffer - | xclip -i" +bind -t emacs-copy C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b" +bind -t vi-copy C-p copy-pipe "xsel -i -p && xsel -o -p | xsel -i -b" # Copy X clipboard to tmux paste buffer -# bind C-p run "xclip -o | tmux load-buffer -; tmux paste-buffer" -bind C-y run "xsel -o | tmux load-buffer - ; tmux paste-buffer" +# bind C-p run-shell "xclip -o | tmux load-buffer -; tmux paste-buffer" +bind C-y run-shell "xsel -o | tmux load-buffer - ; tmux paste-buffer" -- 2.39.5