4 ms·
On OSX you can do something a little less fancy with pbcopy | pbpaste. I normally use it to copy text from files to an email / url output etc.
by res0nat0r 4y ago
On OSX you can do something a little less fancy with pbcopy | pbpaste. I normally use it to copy text from files to an email / url output etc.
- hboon 4y agoAnd I've used this for a few years, courtesy of https://news.ycombinator.com/item?id=10145362 https://news.ycombinator.com/item?id=10145362 I added the call to `ansifilter`: function clip if not tty >/dev/null ansifilter | pbcopy else pbpaste end end