Added support for sensible-editor from Debian, instead of emacs.
This commit is contained in:
parent
54e7d71477
commit
3da37d3fa2
@ -132,7 +132,13 @@ if test -z "$VISUAL"
|
|||||||
then
|
then
|
||||||
if test -z "$EDITOR"
|
if test -z "$EDITOR"
|
||||||
then
|
then
|
||||||
EDIT=emacs
|
# Honor debian sensible-editor
|
||||||
|
if test -x "/usr/bin/sensible-editor"
|
||||||
|
then
|
||||||
|
EDIT=/usr/bin/sensible-editor
|
||||||
|
else
|
||||||
|
EDIT=emacs
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
EDIT="$EDITOR"
|
EDIT="$EDITOR"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user