chiark
/
gitweb
/
~mdw
/
profile
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mdw-editor: If both VISUAL and EDITOR are set unusually, prefer EDITOR.
[profile]
/
mdw-editor
diff --git
a/mdw-editor
b/mdw-editor
index a58ee95ce9a57975496bd2f9a2bf76bb2a62fa36..8b6e819f343b93b4d90b89eb8d96291d98d5ae0c 100755
(executable)
--- a/
mdw-editor
+++ b/
mdw-editor
@@
-6,7
+6,7
@@
editor=${MDW_EDITOR-ed}
case "$EDITOR,$VISUAL,$TERM" in
mdw-editor,mdw-editor,dumb) editor=gnuclient;;
mdw-editor,mdw-editor,*);;
- *,mdw-editor,*) editor=$EDITOR;;
mdw-editor,*,*) editor=$VISUAL;;
+ *,*,*) editor=$EDITOR;;
esac
exec $editor "$@"