Access copy and paste in WSL
You can get and set copy and paste output straight from WSL!
Set the clipboard from WSL output
You can use clip.exe to set Windows’ clipboard from WSL. For example, this line sets the last few lines of your .bashrc file to be your clipboard.
tail ~/.bashrc | clip.exe
Get the clipboard values in WSL
You can use the PowerShell command Get-Clipboard to get clipboard values from within WSL.
powershell.exe /c Get-Clipboard
- More from this author:
- craigaloewen
- craigloewen-msft
- Website