From ad41a8e06d897a0ede300ecff3f2da6ded92a576 Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Fri, 18 May 2018 16:08:54 +0200 Subject: [PATCH] zsh: exports.zsh: set EDITOR to vim if available --- zsh/exports.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/exports.zsh b/zsh/exports.zsh index 504a712..1c29b67 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -1,3 +1,8 @@ +# set EDITOR variable +if type vim >/dev/null 2>&1; then + export EDITOR="vim" +fi + # extend PATH variable if [ -d "$HOME/bin" ]; then export PATH="$HOME/bin:$PATH"