Open
Description
Issue:
Getting clipboard
Can't get from clipboard in windows. Reproduction steps:
gist -Ppc
Error seen:
Error: Could not find copy command, tried: pbpaste || xclip -o || xsel -o || getclip
Copying to clipboard
Reproduction steps:
gist -pc
Error seen:
`Error: Could not find copy command, tried:
pbpaste || xclip -o || xsel -o || getclip
Attempted to copy: https://gist.github.com/[REDACTED]
`
Solution
Command to get clipboard in windows
powershell "Get-Clipboard"
This works in cmd.exe as well
Command to set clipboard in windows
pipe to clip
cmd.exe
in powershell
use Set-Clipboard
Notes
- When I've the time, I'll look into gist code and give a PR. I'm a ruby noob. In the meanwhile, it'd be great if someone can fix this for windows
Metadata
Metadata
Assignees
Labels
No labels