Ten direct-access slots.
Slots map to 1 through 9, then 0. Values can contain Unicode and multiple lines.
Ten slots. Named or directory-scoped.
Keep commands, URLs, IDs, and multiline text in persistent bins. Select a slot with one number, then read or write the system clipboard without leaving the terminal.
go install github.com/evanjhopkins/terminal-paste-bin/cmd/tpb@latest
The whole interface
Each bin is intentionally limited to ten slots. Use a stable name for values shared across projects, or let the current directory select the bin automatically.
Slots map to 1 through 9, then 0. Values can contain Unicode and multiple lines.
Run tpb with no argument to open the bin for the canonical path of the current directory.
Use tpb myapp to create or reopen a bin that is available from any working directory.
Save the current system clipboard with w, or put the selected slot back with r.
tpb search text returns script-friendly, tab-separated matches without opening the TUI.
Data is protected by file locking and atomic writes. TPB has no account, daemon, sync service, or network calls.
Quick start
There is no setup file to write and no process to keep running.
macOS: pbcopy + pbpaste
Wayland: wl-clipboard
X11: xclip or xsel
Run tpb for the current directory, or tpb myapp for a reusable named bin.
Press 1 to 9 or 0. Arrow keys also move through the list.
Press w to save the system clipboard and exit. Reopen the bin, select the slot, and press r to copy it back.
Outside the TUI
List and search from scripts, rename or remove named bins, and preview cleanup before deleting stale directory bins or empty bins.
tpb listList named bins, then directory bins, in alphabetical order.
tpb search postgresSearch all non-blank slots with a case-insensitive substring match.
tpb rename old newRename a named bin without changing its slots.
tpb delete myappPermanently remove a named bin after an interactive confirmation.
tpb prune --dry-runPreview empty bins and directory bins whose paths no longer exist.
tpb doctorReport clipboard availability plus stale and empty bins.
Execution: pressing x runs the selected slot immediately through $SHELL -c, without confirmation.