惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

阮一峰的网络日志
阮一峰的网络日志
博客园 - 司徒正美
D
DataBreaches.Net
宝玉的分享
宝玉的分享
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
IT之家
IT之家
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
腾讯CDC
博客园_首页
The Cloudflare Blog
S
SegmentFault 最新的问题
C
Check Point Blog
美团技术团队
爱范儿
爱范儿
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
T
The Blog of Author Tim Ferriss
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale

Show HN

GitHub - astefanutti/shaderbang: Shebang for Shaders Show HN: Generate Claude Code Workflows using Spec Driven Development approach Show HN: AI agents for UK GDAD PCF roles and their skills The Two Pillars: Mixer Mode and Meta-Software in the Reorganization of Software Work After AI GitHub - JaiCode08/teleport-env What 1,000+ Harness Experiments Taught Me About Self-Improving Agents Show HN: Liiists, a Markdown-first, iOS and CLI list app SwiperTab – Get this Extension for 🦊 Firefox (en-US) GitHub - kouhxp/fftext: Summarize, explain, fact-check, or translate any text, URL, or file. No GPU. No cloud. One command GitHub - sweetpad-dev/sweetpad: Develop Swift/iOS projects using VSCode GitHub - dogmaticdev/IRON: IRON a.k.a. Intermediate Representation Object Notation is a Interpreter/Database that is used to create Programming Languages. GitHub - sjhalani7/vaen: Package your AI coding harness into a portable .agent file, and share it across repos, teams, & the community without ever having to copy-paste instructions, skills, MCP config, or secrets. Show HN: Gandalf the Grader Show HN: Citadeld – replay any CI failure locally from a single file GitHub - tdortman/cuSBF: High-Performance GPU Super Bloom Filter coral-ai/claude-code-token-xray at main · Coral-Bricks-AI/coral-ai GitHub - ulyssestenn/funes: Funes is a Git-based framework for LLM-managed knowledge work: an AI Librarian ingests raw sources, builds an interlinked Markdown knowledge base, and uses it to produce cited reports, analyses, and other outputs. GitHub - ThatXliner/gah: Git Add Hunk, built for agents to use GitHub - harmont-dev/harmont-cli: Command-line client for the Harmont CI platform GitHub - brooksmcmillin/mcp-authflow: OAuth 2.0 Authorization Server framework for MCP servers GitHub - javaid-codes/audit-supply-chain-agents GitHub - amorey/gochan: A small library of common channel architectures for Go, inspired by Rust GitHub - arifozgun/OpenGem: Free, Open-Source AI API Gateway with Gemini, OpenAI & Anthropic Compatibility in 1 file GitHub - Pranesh950/BioPetals: 🌸 Run BIOxAI models at home, BitTorrent-style. Fine-tuning and inference up to 10x faster than offloading GitHub - cnguyen14/bounty-doctor: Diagnose a GitHub bounty issue before you waste hours: detects honeypot scam repos, AI-bot attempt swarms, and stale contests. Show HN: CoreMCP – MCP Server for On-Prem DBs Show HN: KittyHTML – Render HTML/CSS as an inline image in your terminal GitHub - bingud/filemat: Web-based file manager Show HN: TruthLens – Free multi-signal deepfake image detector GitHub - apexlocal-jz/claude-usage-tray: Windows system-tray app showing your Claude Code rate-limit usage at a glance. Zero deps, ~300 lines of PowerShell. Cross-IDE (works regardless of VS Code, Cursor, plain terminal).
GitHub - fragmede/pbi
fragmede · 2026-06-19 · via Show HN

pbi clipboard icon

What is this?

pbi is a command line utility for the mac that copies stdin to the pasteboard when stdin is piped or redirected. When stdin is a terminal, it pastes the current pasteboard content.

why is this better?

pbcopy and pbpaste` already exist, but to their detriment, they're separate binaries. We can just have one command because the process can detect if it's being used as input or output.

Oh, it's also image aware.

The macOS pasteboard has type information, so that you can paste formatting as well as the text. Or you can copy images. With pbpaste though, you can't use pbpaste to dump the image on your pasteboard to where you are in the terminal, because pbpaste (and pbcopy) just silently fail if they don't find text.

So you can't right click, copy image, and then pbpaste that to a file in the terminal.

With pbi, you can.

Installing

From crates.io:

cargo install pbi --locked

From a checkout:

cargo install --path . --locked

Usage

Show command help:

Options:

  • --debug prints clipboard and terminal diagnostics to stderr.
  • -h, --help prints usage and exits without clipboard access.

Right click on an image in your web browser, copy image, and then your terminal, do:

or

There's also the other direction, so you can

and then ⌘+N into preview.app will get you the image in preview.

Also you can do

cat nyan.png | pbi

(`pbi < nyan.png` if you must)

If you use a modern terminal that has Kitty graphics protocol or sixel support, with an image on your paste board you can also do:

and the image will display directly in your terminal.

If you override TERM because of TERMCAP distribution delay, and terminal image auto-detection fails, force the protocol explicitly:

export PBI_IMAGE_PROTOCOL=sixel

Pasteboard vs clibpard

Fun fact!

Apple’s APIs call it a pasteboard (NSPasteboard, UIPasteboard) rather than a clipboard. The term comes from old publishing workflows where designers literally cut out text and images and pasted them onto layout boards before printing. Copy/paste wasn’t originally a computer metaphor, it came from the world of publishing.