add emacs in EDITORS checking and fix nvi to nvim - notes - a console notes manager using git DIR Log DIR Files DIR Refs DIR Tags DIR LICENSE --- DIR commit 117a7f897c43230a75c3dc3ebb00bd38b6be5d49 DIR parent f4c996c7032765c73fdce88c65d43c8d9844e34e HTML Author: Solene Rapenne <solene@perso.pw> Date: Fri, 13 Jul 2018 20:02:58 +0200 add emacs in EDITORS checking and fix nvi to nvim Diffstat: M notes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/notes b/notes @@ -6,8 +6,9 @@ test -z "$REPO" && REPO=~/notes/ # default editor to vi if [ -z "$EDITOR" ]; then - which nvi 2>/dev/null 1>/dev/null && EDITOR=nvi + which nvim 2>/dev/null 1>/dev/null && EDITOR=nvim test -z "$EDITOR" && which vim 2>/dev/null 1>/dev/null && EDITOR=vim + test -z "$EDITOR" && which emacs 2>/dev/null 1>/dev/null && EDITOR=emacs test -z "$EDITOR" && EDITOR=vi fi