From 304119a13fb006b2d5f2bf7bb070fe26411b6ea2 Mon Sep 17 00:00:00 2001 From: Yax <1949284+kianby@users.noreply.github.com> Date: Sun, 18 Apr 2021 11:39:35 +0200 Subject: [PATCH] check VIM existence --- dot_bashrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dot_bashrc b/dot_bashrc index ed1b28f..a641329 100644 --- a/dot_bashrc +++ b/dot_bashrc @@ -33,10 +33,12 @@ shopt -s checkwinsize # EDITOR # --------------------------------------------------------------------------- -export EDITOR=/usr/bin/vim -export SVN_EDITOR=/usr/bin/vim -export GIT_EDITOR=/usr/bin/vim -export VISUAL=/usr/bin/vim +if [ -f "/usr/bin/vim" ]; then + export EDITOR=/usr/bin/vim + export SVN_EDITOR=/usr/bin/vim + export GIT_EDITOR=/usr/bin/vim + export VISUAL=/usr/bin/vim +fi # --------------------------------------------------------------------------- # PROMPT