Various Linux scripts.
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.
 
 
 
 
 
 

12 lines
178 B

#!/bin/bash
TMPFILE=$(mktemp /tmp/viper.XXXXXXXX)
cat > "$TMPFILE"
$EDITOR "$@" "$TMPFILE" < /dev/tty > /dev/tty
if [ "$?" -eq 0 ]; then
cat "$TMPFILE"
fi
\rm -f "$TMPFILE"