# HG changeset patch # User Oleksandr Gavenko # Date 1546467384 -7200 # Node ID c03d7e5281acea925448f2647ea9058228faa9d1 # Parent cdf599c86ccfb3e7bec2e51835d7f64a363498ef Set EDITOR priority. diff -r cdf599c86ccf -r c03d7e5281ac .env --- 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