Clipboard managers warper written in POSIX sh
cb is a clipboard managers warper written in POSIX sh that wraps various system-specific tools for interacting with a system clipboard.
This is literally a port of clipboard.zsh plugin from Oh My Zsh as a stand alone utility.
- Work with
teelike pipeline (e.g:ls | cb | grep -e 'string') - Supported clipboard managers are:
pbcopy,pbpastecygwinwl-clipboardxclipxsellemonadedoitclientwin32yanktermux-apitmux
curl https://codeberg.org/NNB/cb/raw/branch/main/bin/cb > ~/.local/bin/cb
chmod +x ~/.local/bin/cbFor Bpkg user:
bpkg install NNBnh/cbFor Basher user:
basher install NNBnh/cbNote If you can and want to port
cbto other package managers, feel free to do so.
Copy STRING to clipboard:
cb STRINGecho STRING | cbCopy file's data to clipboard:
cb < file.txtPaste from clipboard:
cbPipe clipboard string to other tool:
cb | other-toolSpecial thanks to:
- clipboard.zsh from Oh My Zsh