check VIM existence

main
Yax 4 years ago
parent 5fa1e467e0
commit 304119a13f

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

Loading…
Cancel
Save