From 5375aea605b17d32d5b8b064ad648f8c193a57f7 Mon Sep 17 00:00:00 2001 From: Michael Zhang Date: Thu, 15 Apr 2021 03:20:02 -0500 Subject: [PATCH] command_exists with editor --- dot_zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dot_zshrc b/dot_zshrc index 3658f31..e54bb3a 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -20,7 +20,8 @@ setopt HIST_IGNORE_SPACE export DOTNET_CLI_TELEMETRY_OPTOUT=1 # export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src" -export EDITOR=nvim +export EDITOR=vim +command_exists && export EDITOR=nvim export MAILDIR=$HOME/Mail # export DOCKER_HOST=unix://$XDG_RUNTIME_DIR/docker.sock