Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This looks neat, but as someone who doesn't use Linux on the desktop, I'm typically fine with

macOS (zsh/bash): command | pbcopy

windows (powershell) command | Set-Clipboard



I wrote a wrapper around these some years ago which I’ve been using since. It’s been working pretty well for me.

https://git.sr.ht/~charles/dotfiles/tree/171c95a20394552e02a...


The same flow for Linux can be had with 'xsel'


It sure can:

alias pbcopy='xsel --clipboard --input'

alias pbpaste='xsel --clipboard --output'


alias pbcopy='xclip -selection clipboard'

alias pbpaste='xclip -selection clipboard -o'




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: