<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Wsl on Lloyd Rochester's Geek Blog</title><link>https://lloydroc.github.io/tags/wsl/</link><description>Recent content in Wsl on Lloyd Rochester's Geek Blog</description><generator>Hugo</generator><language>en</language><copyright>Copyright © 2025, Lloyd Rochester.</copyright><lastBuildDate>Sat, 11 Apr 2020 00:00:00 +0000</lastBuildDate><atom:link href="https://lloydroc.github.io/tags/wsl/index.xml" rel="self" type="application/rss+xml"/><item><title>pbcopy/pbpaste in WSL</title><link>https://lloydroc.github.io/post/unix/wsl-pbcopy-pbpaste/</link><pubDate>Tue, 30 Jul 2019 00:00:00 +0000</pubDate><guid>https://lloydroc.github.io/post/unix/wsl-pbcopy-pbpaste/</guid><description>&lt;h1 id="hahahugoshortcode101s0hbhb">pbcopy/pbpaste in WSL&lt;/h1>
&lt;p>If you&amp;rsquo;re looking to replicate the pbcopy and pbpaste commands in WSL then you&amp;rsquo;ve found the right place! In this post we will make some simple shell scripts to replicate pbcopy and pbpaste in OS X. If you&amp;rsquo;re accustomed to pbcopy/pbpaste in Mac OS X, it&amp;rsquo;s hard to not have the equivalent in WSL. One spoiler alert the commands just are not as fast as they are in OS X.&lt;/p></description></item><item><title>Copy Paste with Neovim in WSL</title><link>https://lloydroc.github.io/post/vim/wsl-neovim-copy-paste/</link><pubDate>Tue, 25 Jun 2019 00:00:00 +0000</pubDate><guid>https://lloydroc.github.io/post/vim/wsl-neovim-copy-paste/</guid><description>&lt;figure>&lt;img src="https://lloydroc.github.io/assets/svg/yank.svg">
&lt;/figure>

&lt;h1 id="hahahugoshortcode104s1hbhb">Copy Paste with Neovim in WSL&lt;/h1>
&lt;p>Copy (Yank) and Paste doesn&amp;rsquo;t work in &lt;a href="https://neovim.io/doc/user/provider.html">neovim&lt;/a> because it cannot access the System Clipboard on WSL - Windows Subsystem Linux. This simple small hack solves this issue. This hack works without having to install X Windows or any other tools.&lt;/p>
&lt;p>&lt;strong>Update &lt;a href="https://github.com/neovim/neovim/wiki/FAQ#how-to-use-the-windows-clipboard-from-wsl">Neovim Official Solution&lt;/a>&lt;/strong>. The solution posted in this blog post works, however, at the time there was no official solution. Now see the official solution using the &lt;code>win32yank&lt;/code> binary. I honestly have not tried the solution posted herein for sometime as I no longer have WSL. There maybe a &lt;code>neovim&lt;/code> clipboard provider that works and is built in. In the solution provided we create a pair of Unix scripts to act as that provider if you don&amp;rsquo;t have the &lt;code>win32yank&lt;/code> binary.&lt;/p></description></item></channel></rss>