From 45b4cc3685be69178e23167bcff2d0820e2d62a9 Mon Sep 17 00:00:00 2001 From: Leonora Tindall Date: Wed, 19 Aug 2026 11:02:39 -0500 Subject: [PATCH] default to vi if no editor set --- nnote | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnote b/nnote index 3c864ce..ef86eb7 100755 --- a/nnote +++ b/nnote @@ -44,7 +44,7 @@ else fi pushd "$NOTESDIR" > /dev/null printf "\033]2;$NOTENAME $NOTETYPE note\a" - $EDITOR "$NOTEPATH" || true # || true so we always clear header and popd + ${EDITOR:-vi} "$NOTEPATH" || true # || true so we always clear header and popd printf "\033]2;\a" popd > /dev/null fi