More intelligent EDITOR selection

pull/2/head
Bodaniel Jeanes 2011-10-23 19:03:37 -05:00
parent 6df4be0e1a
commit eea27e522e
1 changed files with 3 additions and 1 deletions

View File

@ -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"