https://github.com/envygeeks/clippy
:paperclip: A utility to access the systems clipboard from Ruby.
https://github.com/envygeeks/clippy
cli clipboard clippy ruby
Last synced: about 1 year ago
JSON representation
:paperclip: A utility to access the systems clipboard from Ruby.
- Host: GitHub
- URL: https://github.com/envygeeks/clippy
- Owner: envygeeks
- License: mit
- Created: 2011-12-26T00:56:26.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-05-18T06:09:15.000Z (almost 10 years ago)
- Last Synced: 2025-03-27T23:21:57.957Z (about 1 year ago)
- Topics: cli, clipboard, clippy, ruby
- Language: Ruby
- Homepage:
- Size: 102 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Clippy is a cross-platform clipboard utility and script for Ruby.
[][travis]
[][coverage]
[][codeclimate]
[][gemnasium]
[gemnasium]: https://gemnasium.com/envygeeks/clippy
[codeclimate]: https://codeclimate.com/github/envygeeks/clippy
[coverage]: https://codeclimate.com/github/envygeeks/clippy/coverage
[travis]: https://travis-ci.org/envygeeks/clippy
---
* Requirements:
* Windows: `clip`
* OS X: `pbcopy`
* Linux: `xsel` || `xclip`
Examples:
```bash
clippy --copy '#1'
clippy --copy < 'file#3.txt'
echo '#2' |clippy --copy
clippy --paste
```
```ruby
require 'clippy'
Clippy.paste; Clippy.clear
Clippy.copy('#1')
```
```
Clippy v2.3.0: Clippy [--copy [< File] ['Text']]
-p, --paste Paste
-N, --no-unescape Do not unescape \n
-c, --copy [STR] Copy a String or STDIN```
-v, --version Version
-C, --clear Clear
```