Simon Willison on Nostr: Figured out a zsh script recipe for pasting images from my clipboard in the terminal ...
Figured out a zsh script recipe for pasting images from my clipboard in the terminal on macOS, so now I can do this:
impaste > /tmp/screenshot.png
Or pipe images into commands that accept them on standard input
https://til.simonwillison.net/macos/impastePublished at
2024-04-05 00:09:48Event JSON
{
"id": "54933499efc57131d1113f51f650a1ba4cde2f6a0abad6381b0e4beeb8806090",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1712275788,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112215706091063834",
"activitypub"
]
],
"content": "Figured out a zsh script recipe for pasting images from my clipboard in the terminal on macOS, so now I can do this:\n\nimpaste \u003e /tmp/screenshot.png\n\nOr pipe images into commands that accept them on standard input\n\nhttps://til.simonwillison.net/macos/impaste",
"sig": "fef6153727d5adf73d38b196875320a240da72cb01ba597e4075a266a3239ece1820474fe946db9711a4bb912f3fc2c07f8968694bdbc83394052ebc30963219"
}