From eea27e522ec318bbbb0b2d84e7040e9d533f7c9f Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Sun, 23 Oct 2011 19:03:37 -0500 Subject: [PATCH] More intelligent EDITOR selection --- shell/exports.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shell/exports.sh b/shell/exports.sh index 64b8064..3dce980 100644 --- a/shell/exports.sh +++ b/shell/exports.sh @@ -1,4 +1,6 @@ -export EDITOR="$(which mvim || which vim) -f" # http://is.gd/hGrsF +which vim &>/dev/null && export EDITOR="$(which vim) -f" +which mvim &>/dev/null && export EDITOR="$(which mvim) -f" + export VISUAL="$EDITOR" export GEM_OPEN_EDITOR="$EDITOR" export GIT_EDITOR="$EDITOR"