From 0888107f07270c1d4a9650f2cc7171fa78e18538 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Mon, 10 Jan 2022 20:25:40 -0500 Subject: [PATCH] sh: Only set EDITOR/VISUAL if unset The idea here is that in an individual installation, I could set the EDITOR in the .profile or something to override these! --- .shrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.shrc b/.shrc index fd5b957..52f0b7a 100644 --- a/.shrc +++ b/.shrc @@ -3,7 +3,7 @@ PS1='\u@\h:\w \$ ' HISTFILE="$HOME/.sh_history" HISTSIZE=100000 -export EDITOR=ed -export VISUAL=vi +export EDITOR=${EDITOR:-ed} +export VISUAL=${VISUAL:-vi} alias ll='ls -lahF' -- libgit2 1.1.1