From 5da6d47f5b51cbd67eab9da2e78469222acf2506 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 8 May 2017 21:41:47 +0530 Subject: [PATCH] profile: Export VISUAL, fallback on 'emw' if Emacs --- .profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.profile b/.profile index c5ff01e2..f3f6fd55 100644 --- a/.profile +++ b/.profile @@ -164,8 +164,11 @@ for i in em emacs vim nano; do command -v $i >/dev/null 2>&1 && export EDITOR=$i && break done GIT_EDITOR="$EDITOR" +VISUAL="$EDITOR" [ "$GIT_EDITOR" = em ] && GIT_EDITOR=emc +[ "$VISUAL" = em ] && VISUAL=emw export GIT_EDITOR +export VISUAL ################################################################################