Neat! Got curious if you can do that without a temp file, turns out you can:
#!/usr/bin/osascript -l JavaScript ObjC.import("AppKit"); $.NSFileHandle.fileHandleWithStandardOutput.writeData( $.NSPasteboard.generalPasteboard.dataForType("public.png"), );
Edit:
> `docker compose` is a bit trickier
I’ve tweaked my setup a bit. This installs it as `docker-compose` without symlinking required:
"github:docker/compose" = { version = "latest", rename_exe = "docker-compose" }
DOCKER_CONFIG="${DOCKER_CONFIG:-$HOME/.docker}" mkdir -p "${DOCKER_CONFIG}/cli-plugins" ln -s "$(mise which docker-compose)" "${DOCKER_CONFIG}/cli-plugins/docker-compose"
Neat! Got curious if you can do that without a temp file, turns out you can:
---Edit:
> `docker compose` is a bit trickier
I’ve tweaked my setup a bit. This installs it as `docker-compose` without symlinking required:
And also you can manually symlink it to the Docker plugins dir so `docker compose` works as well: