tmux-plugins / tmux-yank

Tmux plugin for copying to system clipboard. Works on OSX, Linux and Cygwin.
https://tmux-plugins.github.io/tmux-yank/
MIT License
2.72k stars 123 forks source link

[WSL2] Dependencies not installed #143

Open ThaDaVos opened 4 years ago

ThaDaVos commented 4 years ago

When I press the yank key to copy text I see the below error for a split second: image

I checked my path and I also am able to echo "Hello1234" | clip.exe just fine - are there any other dependecies required?

peterramaldes commented 2 years ago

+1

axsaucedo commented 1 year ago

I'm having the same issue, however it seems it only started when I enabled systemd - ie by adding:

[boot]
systemd=true

to my /etc/wsl.config file. Not sure what can cause this - as suggested running > clip.exe works as expected

axsaucedo commented 1 year ago

As a heads up I have been able to find a workaround - I have edited the command directly for my full path of /c/Windows/system32/clip.exe here:

https://github.com/tmux-plugins/tmux-yank/blob/1b1a436e19f095ae8f825243dbe29800a8acd25c/scripts/helpers.sh#L149-L150

This seems to do the job for the time being