Crates.io | cursh |
lib.rs | cursh |
version | 0.1.1 |
source | src |
created_at | 2022-09-08 19:15:43.073265 |
updated_at | 2022-09-08 19:18:22.431111 |
description | Cursh - cli tool to pass clipboard contents as temporary files |
homepage | |
repository | https://github.com/tacklebox/cursh |
max_upload_size | |
id | 661271 |
size | 46,035 |
If a program expects files as arguments and you want to use your system clipboard as the input instead, you can leave a placeholder in the command and cursh passes your clipboard contents as a temporary file to the command.
cargo install cursh
git clone https://github.com/tacklebox/cursh.git
cd cursh
cargo install --path .
cursh diff {{1}} {{2}}
Then copy some text, return to the terminal you ran cursh in, and hit enter. That text is now a temporary file in the position of the placeholder {{1}}. Next, Copy what you would like to diff the previous texts against, return to the terminal and hit enter to execute the diff command and see the output.