cb [--](add|copy|cut)[(num)|_(id)] (file) files
(stdout|stderr) | cb [--](add|copy|cut)[(num)|_(id)]
cb [--](remove|ignore|paste)[(num)|_(id)] (regex) [regexes]
(regex) | cb [--](remove|ignore|paste)[(num)|_(id)]
cb [--](paste)[(num)|_(id)] (regex) [regexes] | (stdin)
cb [--](clear|edit|export|history|help|status|show|info|config)[(num)|_(id)]
cb [--](load|swap)[(num)|_(id)] (clipboard) [clipboards]
cb [--](note|search)[(num)|_(id)] (text)
cb is the ultimate clipboard manager for the terminal. You can cut, copy, and paste anything, anytime, anywhere with unlimited capacity, clipboards, and history. cb doesn’t require a GUI clipboard system, but it does work with many, including X11, Wayland, Windows, macOS, Haiku, and OSC 52.
cb copy FooFile cb cut5 FooFile MyDirectory cb info cb remove "Foo.*" cb paste cb copy "Some example text" cb | cat cat FooFile | cb cb ignore "My[a-z]+" cb edit
cb stores its temporary data in the Clipboard subdirectory in a system-provided temporary folder or in the .clipboard subdirectory in the user’s home folder. cb is also XDG-compliant, prioritizing the relevant XDG directories over the defaults if available.
Set this environment variable to make Clipboard overwrite existing items without a user prompt when pasting. This variable is intended for Continuous Integration scripts where a live human is not present to make decisions.
Set this to the clipboards you want to make persistent, using regex.
Set this to the editor you want to use for the Edit action.
Set this to the maximum history size you want to keep, like 1000, 50.67gb, or 100w.
Set this to the locale that only CB will use for its commands and output, like en_US.UTF-8 or es_DO.UTF-8.
Set this to the directory that only CB will use to hold the items you cut or copy into a temporary directory.
Set this to the directory that only CB will use to hold the items you cut or copy into a persistent directory.
Set this to "true" or "1" to disable audio coming from CB.
Set this environment variable to disable GUI clipboard integration.
Set this to "true" or "1" to disable only progress messages from CB.
Set this to "true" or "1" to disable remote clipboard sharing.
Set this to "true" or "1" to disable progress and confirmation messages from CB.
Set this to the
color theme that CB will use. Choose between light,
darkhighcontrast, lighthighcontrast, amber, green, and
ansi (the default is dark).
Set this environment variable to make Clipboard always show color regardless of what you set NO_COLOR to.
Set this environment variable to make Clipboard not show any colors.
Add this when clearing to clear all clipboards at once, or when searching to search all clipboards.
Add this to choose which clipboard you want to use.
Add this to choose which history entry you want to use.
Add this to use links when copying, cutting, pasting, or loading. If you modify the items that you used with this flag, then the items you paste will have the same changes.
Add this to request a specific content MIME type from GUI clipboard systems.
Add this to disable confirmation messages from CB.
Add this to disable progress messages from CB.
Add this for something special!
Full documentation is available at https://github.com/Slackadays/Clipboard.
Our Discord group is at https://discord.gg/J6asnc3pEG.
Report all bugs to https://github.com/Slackadays/Clipboard or https://discord.gg/J6asnc3pEG.
Copyright (c) 2023 Jackson Huff.