1

I am using TMUX 2.3 just recently copying stopped working.

Here is the relevant section that lets me copy stuff to the clipboard:

bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy y copy-pipe "xclip -sel clip -i"

I made sure xclip is installed.

One thing I found out is this git commit in the tmux repository: Fundamental change to how copy mode key bindings work (76d6d3)

So I know that the keybindings changed but I cannot make out how to rewrite those two lines so they are working.

I am aware of the following questions though I believe they do not solve the problem I have.

Jeff Schaller
  • 67,283
  • 35
  • 116
  • 255

1 Answers1

2

I also stumbled upon this issue. After some googling I found the solution on a japanese blog here.

Instead of doing bind-key -t vi-copy y copy-pipe "xclip -sel clip -i"
Do something like this:

bind-key -T copy-mode-vi y send -X copy-pipe "xclip -sel clip -i"
esfy
  • 166