From 0883447a44218c299b84082a8793dddb3bbaf955 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 28 May 2022 09:07:40 -0700 Subject: [PATCH] [zsh] Move vi init to init_env_vi; set EDITOR in that function --- zsh/func/init_env_vi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/func/init_env_vi b/zsh/func/init_env_vi index 63eef8a..164b53c 100644 --- a/zsh/func/init_env_vi +++ b/zsh/func/init_env_vi @@ -3,10 +3,10 @@ # Prefer nvim and vim, in that order, over standard vi, which is insufferable. -if whence -cp nvim &> -; then +if whence -cp nvim >& -; then alias vi=nvim export EDITOR=nvim -elif whence -cp vim &> -; then +elif whence -cp vim >& -; then alias vi=vim export EDITOR=vim fi