diff --git a/tmux.conf b/tmux.conf index 89ef6e0..461cc96 100644 --- a/tmux.conf +++ b/tmux.conf @@ -120,15 +120,20 @@ unbind C-p bind-key C-p previous-window #Copy tmux buffer to CLIPBOARD -unbind C-c +unbind C-y bind-key y run-shell -b "tmux save-buffer - | xclip -i -selection clipboard" #Copy CLIPBOARD to tmux buffer and paste-it in tmux +unbind C-v bind-key C-v run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" # Copy-mode bind-key -t vi-copy 'v' begin-selection bind-key -t vi-copy 'y' copy-selection +# Paste buffer +unbind P +bind-key P run "tmux paste-buffer" + # Window selection by name unbind b bind-key b command-prompt "find-window -NT '%%'"