From ac66b3b7f10063db3912332ab165a34173d43d35 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 29 Jun 2021 23:21:14 -0400 Subject: [PATCH] ed: export EDITOR and VISUAL as ed in `e` If I've chosen to use ed, we should stay in ed! --- bin/e | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/e b/bin/e index 90812b6..ea3f990 100755 --- a/bin/e +++ b/bin/e @@ -16,9 +16,12 @@ for f in .tags tags; do done DOTDIR="$(dirname $(dirname $(readlink -f "$0")))" -echo "$DOTDIR" export INPUTRC="$DOTDIR/etc/edinputrc" +# Don't want to pop open vi(1)! +export EDITOR=e +export VISUAL=e + # Only include -v if using GNU ed if ed --version >/dev/null 2>&1 ; then VERBOSE="-v" -- libgit2 0.28.4