dotfiles

my shiny new dotfiles
git clone git://git.jakekoroman.com/dotfiles
Log | Files | Refs | README

commit 6e88306ce5f23ca8ac1def6c57efad75719f46c6
parent 97fac59e836cca5485cbe6646ffb72ccc45846fb
Author: Jake Koroman <jakekoroman@gmail.com>
Date:   Thu,  5 Sep 2024 14:41:50 -0400

safeedit: set EDITOR if not set

Diffstat:
Mscripts/safeedit | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/scripts/safeedit b/scripts/safeedit @@ -14,4 +14,6 @@ fi cp "$1" "$bak" echo "info: created backup file $bak" + +[ -z $EDITOR ] && echo "error: EDITOR is not set. attempting to use vi" && export EDITOR=vi $EDITOR "$1"