tos-kamiya / cb

cb, command-line clipboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cb

cb, a command-line clipboard, inspired by psub command of fish shell.

Install

Copy cb to a directory on PATH, such as ~/bin/.

Usage

To copy the output of a command line to the clipboard,

a-command-line | cb

To paste the contents of the clipboard to another command line,

cb | another-command-line

To show the contents of the clipboard,

cb

Usage sample

Open a new terminal and change directory to the same directory of the current terminal.

Type in a current terminal:

pwd | cb

Then open a new terminal and type in it:

cd $(cb)

About

cb, command-line clipboard

License:The Unlicense


Languages

Language:Shell 100.0%