CB(1)
π cb(1) β cut, copy, and paste anything in the terminal π
Okay so this is the cb(1) manual page for Clipboard, bestie β the terminal clipboard manager with main character energy. No cap, itβs here to help you cut, copy, and paste literally anything.
β¨ SYNOPSIS β¨
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)
π DESCRIPTION π
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. Periodt. π
π EXAMPLES π
Hereβs the example lineup, exactly as the page gives it:
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
π FILES π
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. π¦
πΈ ENVIRONMENT VARIABLES πΈ
These are the env vars, bestie β set them and cb knows whatβs up.
π
CI
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. iykyk β robot mode.
π CLIPBOARD_CUSTOMPERSIST
Set this to the clipboards you want to make persistent, using regex.
π§ CLIPBOARD_EDITOR
Set this to the editor you want to use for the Edit action.
β CLIPBOARD_HISTORY
Set this to the maximum history size you want to keep, like 1000, 50.67gb, or 100w.
π¦ CLIPBOARD_LOCALE
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.
π CLIPBOARD_TMPDIR
Set this to the directory that only CB will use to hold the items you cut or copy into a temporary directory.
π CLIPBOARD_PERSISTDIR
Set this to the directory that only CB will use to hold the items you cut or copy into a persistent directory.
π₯ CLIPBOARD_NOAUDIO
Set this to "true" or "1" to disable audio coming from CB.
π«Ά CLIPBOARD_NOGUI
Set this environment variable to disable GUI clipboard integration.
π CLIPBOARD_NOPROGRESS
Set this to "true" or "1" to disable only progress messages from CB. Only the progress ones β sheβs specific.
π CLIPBOARD_NOREMOTE
Set this to "true" or "1" to disable remote clipboard sharing.
π CLIPBOARD_SILENT
Set this to "true" or "1" to disable progress and confirmation messages from CB.
πΈ CLIPBOARD_THEME
Set this to the color theme that CB will use. Choose between light, darkhighcontrast, lighthighcontrast, amber, green, and ansi (the default is dark).
π FORCE_COLOR
Set this environment variable to make Clipboard always show color regardless of what you set NO_COLOR to.
π NO_COLOR
Set this environment variable to make Clipboard not show any colors.
π₯ FLAGS π₯
--all,-aβ Add this when clearing to clear all clipboards at once, or when searching to search all clipboards.--clipboard (clipboard),-c (clipboard)β Add this to choose which clipboard you want to use.--entry (entry),-e (entry)β Add this to choose which history entry you want to use.--fast-copy,-fcβ 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.--mime, -mβ Add this to request a specific content MIME type from GUI clipboard systems.--no-confirmation, -ncβ Add this to disable confirmation messages from CB.--no-progress, -npβ Add this to disable progress messages from CB.--bachataβ Add this for something special! β¨ mystery icon behavior β¨
π FULL DOCUMENTATION π
Full documentation is available at https://github.com/Slackadays/Clipboard. Go read, bestie.
π«Ά SUPPORT π«Ά
Our Discord group is at https://discord.gg/J6asnc3pEG.
π BUGS π
Report all bugs to https://github.com/Slackadays/Clipboard or https://discord.gg/J6asnc3pEG.
π COPYRIGHT π
Copyright (c) 2022-2024 Jackson Huff.
π Cute sign-off: source/version + date werenβt filled in here β the original footer is literally just the placeholder (), so nothing extra got dropped. Mwah! π
π¦ where this page comes from
- alpine 3.24: clipboard-doc 0.10.0-r0 Β· GPL-3.0-only
- nixos 26.05: clipboard-jh 0.10.0
- nixpkgs unstable: clipboard-jh 0.10.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms