#!/bin/sh [ -n "$1" ] || exit 1 if [ -n "$TERM" ]; then "$EDITOR" "$1" else "$TERMINAL" -e "$EDITOR $1" fi