Skip to content

Latest commit

 

History

History
25 lines (23 loc) · 719 Bytes

README.md

File metadata and controls

25 lines (23 loc) · 719 Bytes

cpa

cpa (copy-all) is a very lightweight CLI tool to copy whole shell command output to OS-level clipboard.

Prerequisites

On Linux you need the x11 library:

sudo apt-get install xorg-dev

For build you will need Cargo:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Build

  1. Clone this repository and cd into it
  2. Run cargo build --release
  3. For convenience, make executable present in $PATH:
sudo cp target/release/cpa /usr/local/bin/

Usage

cpa is intended to use with pipe operator, for example:

ls -la | cpa