startling / xi

A little script for cross-platform copying and pasting through unixy pipes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xi is a little tool that can copy text to your clipboard from stdin or paste text to stdout.

Usage

Copy from stdin:

echo "copy this" | xi 
cat todo.txt | xi

Paste to stdout:

xi | less
xi > pasted.txt
echo `xi`

Credits

I owe this thing to kennethreitz, who wrote both clint and xerox; this script is only twenty lines because of them.

About

A little script for cross-platform copying and pasting through unixy pipes.


Languages

Language:Python 100.0%