#!/bin/sh # Edit clipboard contents with $EDITOR. This will break in situations # not using localhost:1... tmpfile=`mktemp /tmp/edit-clipboard.XXXXXX` xclip -o > "$tmpfile" $EDITOR "$tmpfile" xclip -i "$tmpfile" rm "$tmpfile"