cpa (copy-all) is a very lightweight CLI tool to copy whole shell command output to OS-level clipboard.
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
- Clone this repository and
cd
into it - Run
cargo build --release
- For convenience, make executable present in
$PATH
:
sudo cp target/release/cpa /usr/local/bin/
cpa is intended to use with pipe operator, for example:
ls -la | cpa