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"