aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-08-13 09:27:02 -0300
committerEuAndreh <eu@euandre.org>2022-08-13 09:27:02 -0300
commitf44857cedd5d4fdc2065baa2fa0344af5011a43c (patch)
treef960017f3f247953e96e06283d6891b704c59192
parentetc/guix/home.scm: Add cronjob to run "check" (diff)
downloaddotfiles-f44857cedd5d4fdc2065baa2fa0344af5011a43c.tar.gz
dotfiles-f44857cedd5d4fdc2065baa2fa0344af5011a43c.tar.xz
bin/e: Avoid infinite recursion by checking if $EDITOR is already "e"
-rwxr-xr-xbin/e3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/e b/bin/e
index b163eda..dc7b47d 100755
--- a/bin/e
+++ b/bin/e
@@ -65,6 +65,9 @@ shift $((OPTIND - 1))
CMD="${VISUAL:-${EDITOR:-vi}}"
+if [ "$CMD" = 'e' ]; then
+ CMD='vi'
+fi
if [ ! -t 0 ]; then
F="$(mkstemp)"