1
0
Fork 0

bin: Merge clipboard wrappers

This commit is contained in:
Jeremy Kaplan 2026-04-11 22:52:26 -04:00
commit 303c3ab55e
9 changed files with 108 additions and 20 deletions

17
bin/cbpaste Executable file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
OSTYPE="$(uname -s)"
case "${OSTYPE}" in
Linux)
exec wl-paste --no-newline
;;
Darwin)
exec pbpaste
;;
*)
>&2 echo "Unknown OS type: ${OSTYPE}"
exit 1
;;
esac