profile: Add back condition on GIT_EDITOR

master
Pierre Neidhardt 2016-10-13 18:27:17 +05:30
parent c4142cd4bc
commit 8d077178b1
1 changed files with 3 additions and 1 deletions

View File

@ -154,7 +154,9 @@ prependpath "${HOME}/.hackpool"
for i in em emacs vim nano; do
command -v $i >/dev/null 2>&1 && export EDITOR=$i && break
done
export GIT_EDITOR="$EDITOR"
GIT_EDITOR="$EDITOR"
[ "$GIT_EDITOR" = em ] && GIT_EDITOR=emc
export GIT_EDITOR
################################################################################