From e238d90ab74050046a383405a616b13db3032ce7 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Wed, 4 Oct 2017 11:47:55 +0200 Subject: [PATCH] make zsh integration depend on vim being installed --- .zsh/zshenv/parts.d/50-vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.zsh/zshenv/parts.d/50-vim b/.zsh/zshenv/parts.d/50-vim index 2818885..51d633e 100644 --- a/.zsh/zshenv/parts.d/50-vim +++ b/.zsh/zshenv/parts.d/50-vim @@ -7,7 +7,9 @@ # Source repository: http://git.madduck.net/v/etc/zsh.git # -export EDITOR==vim -export VISUAL=$EDITOR +if command -v vim >/dev/null; then + export EDITOR==vim + export VISUAL=$EDITOR +fi # vim:ft=zsh -- 2.39.5