st

my build of st
git clone git://git.ckyln.com/st
Log | Files | Refs | README | LICENSE

st-editstdout (127B)


      1 #!/bin/sh
      2 tmpfile=$(mktemp /tmp/st-edit.XXXXXX)
      3 trap  'rm "$tmpfile"' EXIT INT HUP
      4 cat > "$tmpfile"
      5 st -e "$EDITOR" "$tmpfile"