felixhummel / clipboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clipboard

A simple clipboard tool:

$ clipboard --help
Usage: clipboard [-f|--force] [-h|--help]

EXAMPLES

Copy STDIN:
  echo 'Hello, world!' | clipboard

Paste to STDOUT:
  clipboard

Paste image to file:
  clipboard > foo.png

Prerequisites

You'll need bash and xclip.

Ubuntu:

sudo apt-get install xclip

Arch:

sudo pacman -S xclip

Installation

Put clipboard on your PATH, e.g.

wget \
  https://raw.githubusercontent.com/felixhummel/clipboard/master/clipboard \
  -O ~/.local/bin/clipboard
chmod +x ~/.local/bin/clipboard

Development

Clone this and put clipboard on your PATH, e.g.

git clone https://github.com/felixhummel/clipboard.git
cd clipboard
ln -s $PWD/clipboard ~/.local/bin/clipboard
hash clipboard

Test

$ echo 'Möhren sind lecker' | clipboard && clipboard 
Möhren sind lecker

About


Languages

Language:Shell 100.0%