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
230 B

  1. #!/bin/sh
  2. # Edit clipboard contents with $EDITOR. This will break in situations
  3. # not using localhost:1...
  4. tmpfile=$(mktemp /tmp/edit-clipboard.XXXXXX)
  5. xclip -o > "$tmpfile"
  6. $EDITOR "$tmpfile"
  7. xclip -i "$tmpfile"
  8. rm "$tmpfile"