4 ms·
Oh wow, I didn't know about this, thanks for posting! For others, it really is just as easy as `ls | clip.exe` to pipe into your clipboard on WSL. `ls | tee c
by TOMDM 3y ago
Oh wow, I didn't know about this, thanks for posting!
For others, it really is just as easy as `ls | clip.exe` to pipe into your clipboard on WSL.
`ls | tee clip.exe` if you want to print as well as copy.
And of course you can just set an alias if you want to shorten clip.exe to clip.
Great tip! Thank you!
- Brian_K_White 3y agoIt's implimented as a magic filename? Not a virtual or real file that actually appears in a filesystem? You don't have to do something like mount a virtual fs that maps to your host windows fs like a bind mount or nfs mount, and also add that fs to PATH? If so, that sounds terrible, and very Microsoft.
- Kwpolska 3y agoThe entire point of WSL is seamless integration. Windows drives are automatically mounted as /mnt/c, the Windows PATH is added to the Linux one, and it can run Windows .exe files and communicate with their standard I/O.
- Brian_K_White 3y agoSo it's not magic then. A fs and a field in PATH means nothing unexpected happens. So good then.