bin/st-edit @ fd1ced257076

More
author Steve Losh <steve@stevelosh.com>
date Thu, 28 Feb 2019 14:01:26 -0500
parents (none)
children 80f5ec3932ae
#!/bin/sh
# see https://st.suckless.org/patches/externalpipe/editscreen.sh
tmpfile=$(mktemp /tmp/st-edit.XXXXXX)
trap  'rm "$tmpfile"' 0 1 15
cat > "$tmpfile"
st -e "nvim" "$tmpfile"