Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for WSL #59

Merged
merged 5 commits into from
Feb 12, 2020
Merged

Add support for WSL #59

merged 5 commits into from
Feb 12, 2020

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Feb 9, 2020

Fixes #53

I've tested this locally on my machine; I'm happy to take ownership of this feature, and so be assigned any issues that might arise from it :)

Here's a quick screenshot of it being run from within the Linux subsystem (i.e not on the native Windows filesystem):

image

const c = require('clipboardy');

console.log(c.readSync());
c.writeSync('hello world!');

I don't have any development sdks (aside from say the custom JDK that is packed with IntelliJ) installed on my host; I operate purely in WSL for my command line stuff, so the exes run fine regardless of location.


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


IssueHunt has been backed by the following sponsors. Become a sponsor

@G-Rath
Copy link
Contributor Author

G-Rath commented Feb 9, 2020

@sindresorhus it seems that xo has changed its import ordering rules at some point?

Running fix locally results in different results, so I've manually corrected and included said corrections in this PR - happy to break them out if you're prefer :)

@sindresorhus sindresorhus merged commit 025b705 into sindresorhus:master Feb 12, 2020
@G-Rath G-Rath deleted the support-wsl branch February 12, 2020 09:16
@G-Rath
Copy link
Contributor Author

G-Rath commented Feb 12, 2020

@sindresorhus cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Does not work when installed by npm on WSL
2 participants