Introduction
Introduction Statistics Contact Development Disclaimer Help
add emacs in EDITORS checking and fix nvi to nvim - notes - a console notes man…
Log
Files
Refs
Tags
LICENSE
---
commit 117a7f897c43230a75c3dc3ebb00bd38b6be5d49
parent f4c996c7032765c73fdce88c65d43c8d9844e34e
Author: Solene Rapenne <[email protected]>
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(-)
---
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=ema…
test -z "$EDITOR" && EDITOR=vi
fi
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.