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
tee
like pipeline (e.g:ls | cb | grep -e 'string'
) - Supported clipboard managers are:
pbcopy
,pbpaste
cygwin
wl-clipboard
xclip
xsel
lemonade
doitclient
win32yank
termux-api
tmux
curl https://codeberg.org/NNB/cb/raw/branch/main/bin/cb > ~/.local/bin/cb
chmod +x ~/.local/bin/cb
For Bpkg user:
bpkg install NNBnh/cb
For Basher user:
basher install NNBnh/cb
Note If you can and want to port
cb
to other package managers, feel free to do so.
Copy STRING
to clipboard:
cb STRING
echo STRING | cb
Copy file's data to clipboard:
cb < file.txt
Paste from clipboard:
cb
Pipe clipboard string to other tool:
cb | other-tool
Special thanks to:
- clipboard.zsh from Oh My Zsh