#!/bin/sh
|
|
|
|
# Edit clipboard contents with $EDITOR.
|
|
|
|
tmpfile=`mktemp edit-clipboard.XXXXXX`
|
|
xclip -o > "$tmpfile"
|
|
"$EDITOR" "$tmpfile"
|
|
xclip -i "$tmpfile"
|
|
rm "$tmpfile"
|