Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
229 B

#!/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"