lisp-init.lisp: Various changes.
[profile] / mdw-editor
1 #! /bin/sh
2
3 set -e
4 editor=${MDW_EDITOR-ed}
5 case "$EDITOR,$VISUAL,$TERM" in
6 mdw-editor,mdw-editor,dumb) editor=gnuclient;;
7 mdw-editor,mdw-editor,*);;
8 *,mdw-editor,*) editor=$EDITOR;;
9 mdw-editor,*,*) editor=$VISUAL;;
10 esac
11 exec $editor "$@"