imgc() {
tee >(imgcat "$@") >(impbcopy -) > /dev/null
}
So you can:
cat image.png | imgc
Which will then show the image in the console, and if you switch over to another app you can simply paste in the image. And if you create a new file in Preview it will be the image in the paste buffer!
https://github.com/williamcotton/dotfiles/blob/master/bin/im...
Then create a shell function like:
So you can: Which will then show the image in the console, and if you switch over to another app you can simply paste in the image. And if you create a new file in Preview it will be the image in the paste buffer!