chiark / gitweb /
Install configuration for `mg' editor.
[profile] / mdw-editor
CommitLineData
e04c4857
MW
1#! /bin/sh
2
3set -e
4editor=${MDW_EDITOR-ed}
5case "$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;;
10esac
11exec $editor "$@"