dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 0f9a4fe4f84a63c5d5681c593db6f5bd04866f14
parent 8ac90a9dd873fbf2fca2d769cd1bf1b78862a0ec
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Thu, 12 Dec 2019 05:45:40 -0500

Prefer sam(1) for $EDITOR if available

Diffstat:
M.profile.d/editor.sh | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.profile.d/editor.sh b/.profile.d/editor.sh @@ -1,4 +1,7 @@ -if type ed > /dev/null 2>&1 +if type sam > /dev/null 2>&1 +then + EDITOR='sam -d' +elif type ed > /dev/null 2>&1 then EDITOR=ed else