clipedit.sh: added script

This commit is contained in:
dogeystamp 2023-01-01 14:19:37 -05:00
parent f904f8a9cf
commit 431c7dcdd8
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -0,0 +1,8 @@
#!/bin/sh
# Edit clipboard contents with $EDITOR
TMPFILE="$(mktemp)"
xsel -b > "$TMPFILE"
nvim "$TMPFILE"
cat "$TMPFILE" | xsel -ib