changeset 920:5a54ee00803b

Set EDITOR priority.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Thu, 03 Jan 2019 00:16:24 +0200
parents 4b6610aa7beb
children 8101e2e557a9
files .env
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.env	Wed Jan 02 23:49:07 2019 +0200
+++ b/.env	Thu Jan 03 00:16:24 2019 +0200
@@ -7,7 +7,13 @@
 export DEBEMAIL='gavenkoa@gmail.com'
 
 # XXX for mc, cvs, svn, ...
-export EDITOR=et
+if command -v et >/dev/null; then
+  export EDITOR=et
+elif command -v mcedit >/dev/null; then
+  export EDITOR=mcedit
+else
+  export EDITOR=vi
+fi
 
 # XXX vim and gnome-terminal have support for 256 colours in fedora 8 at least
 # Note debian/ubuntu users should install the ncurses-term package to support this