~mdw
/
profile
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
bash_profile: Make editor selection indirect via a script mdw-editor.
[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
"$@"