2 releases
new 0.1.1 | May 5, 2025 |
---|---|
0.1.0 | May 5, 2025 |
#1392 in Command line utilities
5KB
๐ rscopy
A lightning-fast ๐ฆ Rust implementation of macOS's pbcopy
!
โจ What is rscopy
?
rscopy
is a simple, no-fuss command-line tool that copies input from standard input (stdin) straight to your system clipboard ๐ โ just like pbcopy
, but written in Rust for speed โก๏ธ and reliability ๐ช.
๐ง How it works
echo "Hello from Rust!" | rscopy
Whatever you pipe into rscopy
will instantly be available on your clipboard, ready to paste wherever you like ๐.
๐ ๏ธ Installation
๐ฃ Build from source
Make sure you have Rust installed ๐ฆ, then:
git clone https://github.com/yourusername/rscopy.git
cd rscopy
cargo build --release
Then copy the binary to somewhere in your PATH
:
cp target/release/rscopy /usr/local/bin/
โจ Done!
๐งช Usage
Command | What it does |
---|---|
echo "text" | rscopy |
Copies "text" to your clipboard โ๏ธ |
cat file.txt | rscopy |
Copies the contents of file.txt ๐ |
rscopy < file.txt |
Another way to copy a file's contents ๐ |
Example:
echo "Copy this to clipboard!" | rscopy
๐ฆ Dependencies
clipboard
crate โ handles the clipboard operations for you.
Dependencies
~14โ325KB