From b767defdc57be8c3fad1df7b1c10cc70d90cec21 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Fri, 13 Jan 2023 08:17:11 -0500 Subject: [PATCH] prefer helix/vim over neovim --- dot_config/bash/editor.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dot_config/bash/editor.sh b/dot_config/bash/editor.sh index ddf8b3b..c22e81e 100644 --- a/dot_config/bash/editor.sh +++ b/dot_config/bash/editor.sh @@ -1,7 +1,7 @@ EDITOR=vi -if which nvim > /dev/null 2>&1 ; then - EDITOR=nvim; -elif which vim > /dev/null 2>&1 ; then +if command -v hx > /dev/null ; then + EDITOR=hx +elif command -v vim > /dev/null ; then EDITOR=vim fi export EDITOR