#!/bin/sh VPIN= if [ ! -t 0 ]; then VPIN=`mktemp` cat > "$VPIN" fi export VPIN f=`mktemp` /dev/tty vi +':so /usr/local/etc/vprc' "$@" "$f" [ "$(wc -c "$f" | awk '{print $1}')" -eq 0 ] && rm "$f" if [ ! -z "$VPIN" ]; then vpeval <"$f" | sed 's/^# //' rm "$VPIN" fi