Copy files to clipboard from command line, expecting to achieve the same effect as right-click copy. Now support Windows, OSX and Linux.
Step 0: install rust
Step 1: clone & build
git clone https://github.com/b1tg/pickup.git
cd pickup
cargo build --release
# you can find pickup or pickup.exe in ./target/release/
Step 2 (optional): add pickup
to you PATH
Step 3 (only for linux): install xclip
Usage: pickup [file patterns]
Exameple:
# copy single file
pickup Cargo.toml
# copy all pdf file in target subdirectories (need double quotation)
pickup "docs/**/*.pdf"
# copy folder
pickup src