dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | README | LICENSE

commit 0888107f07270c1d4a9650f2cc7171fa78e18538 (patch)
parent b178f35242733020f286339ae39933e9ff1ca982
Author: Alex Karle <alex@alexkarle.com>
Date:   Mon, 10 Jan 2022 20:25:40 -0500

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!

Diffstat:
M.shrc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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'