Great reorganization.
[profile] / bin / mdw-editor
CommitLineData
e04c4857
MW
1#! /bin/sh
2
3set -e
4editor=${MDW_EDITOR-ed}
8ec7231c 5[ -t 0 -a -t 1 ] || TERM=dumb
e04c4857
MW
6case "$EDITOR,$VISUAL,$TERM" in
7 mdw-editor,mdw-editor,dumb) editor=gnuclient;;
8 mdw-editor,mdw-editor,*);;
e04c4857 9 mdw-editor,*,*) editor=$VISUAL;;
9db17a65 10 *,*,*) editor=$EDITOR;;
e04c4857
MW
11esac
12exec $editor "$@"