đź“Ž A utility to access the systems clipboard from Ruby.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.codeclimate.yml
.gitignore
.rspec
.rubocop.yml
.travis.yml
Gem.gemspec
Gemfile
LICENSE
README.md
Rakefile

README.md

Clippy is a cross-platform clipboard utility and script for Ruby.

[Build Status][travis] [Test Coverage][coverage] [Code Climate][codeclimate] [Dependency Status][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:

clippy --copy '#1'
clippy --copy < 'file#3.txt'
echo '#2' |clippy --copy
clippy --paste
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