Skip to content
/ cpa Public

Copy your whole shell command output to OS clipboard

License

Notifications You must be signed in to change notification settings

wiese-m/cpa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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