2 releases
0.1.1 | Mar 9, 2024 |
---|---|
0.1.0 | Mar 6, 2024 |
#2267 in Command line utilities
16KB
221 lines
crepe-bordeaux
The cross-platform clipboard cli tool
Copy:
$ echo "foo" | cb
Paste:
$ cb
foo
Clear:
$ cb clear
Save to a register:
$ echo "thing I want to save for a while" | cb memorable-name
Paste from a register:
$ cb memorable-name
thing I want to save for a while
List registers:
$ cb list
memorable-name
Clear a register:
$ cb memorable-name clear
Clear system clipboard and all registers:
$ cb clear-all
Select a register interactively with fzf (or skim) in bash:
$ cb $(cb list | fzf)
No clipboard available?
cb
will write to a .txt file in the folder determined by Rust's std::env::temp_dir
Want to use a different folder?
Set the environment variable CB_DIR
Why, though?
I was enjoying Amila's cb
interface on my main computer and had already forked it to add Wayland support with arboard. However, on a minimal install of NixOS with no display/window manager there was no clipboard for it to use, so I made this.
Why "crepe-bordeaux", though?
The names clipboard-cli and cli-clipboard were already taken, and tealdeer inspired creativity.
Dependencies
~3–17MB
~190K SLoC