The cross-platform clipboard cli tool
$ echo "foo" | cb
$ cb
foo
$ cb clear
$ echo "thing I want to save for a while" | cb memorable-name
$ cb memorable-name
thing I want to save for a while
$ cb list
memorable-name
$ cb memorable-name clear
$ cb clear-all
$ cb $(cb list | fzf)
cb
will write to a .txt file in the folder determined by Rust's std::env::temp_dir
Set the environment variable CB_DIR
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.
The names clipboard-cli and cli-clipboard were already taken, and tealdeer inspired creativity.