Veja WSL issue # 1069 para duas soluções alternativas:
Just to clarify for anyone who stumbles upon this thread, to use type
cat filePath | clip.exe
into the command prompt.
- JetStarBlues commented on Feb 8
Ou:
I can confirm that having Xming running and configuring the
DISPLAY
env var is enough to make something go to the windows clipboard:$ export DISPLAY=:0 $ echo 'some text' | xclip -selection clipboard
This works just fine. Apparently using the primary clipboard also works fine, so I'm guessing Xming will redirect both to the windows clipboard.
- mateusmedeiros commented on Sep 9, 2016