From 00c3c1f3b1221e5dc2d57b53daef7eb1b0f09858 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 18 Aug 2016 11:09:47 +1200 Subject: Arrange EDITOR/VISUAL in a more typical way --- sh/profile.d/editor.sh | 7 +++---- sh/profile.d/visual.sh | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 sh/profile.d/visual.sh (limited to 'sh/profile.d') diff --git a/sh/profile.d/editor.sh b/sh/profile.d/editor.sh index 7ed9e262..ee0da70b 100644 --- a/sh/profile.d/editor.sh +++ b/sh/profile.d/editor.sh @@ -1,4 +1,3 @@ -# Set editor -EDITOR=vi -VISUAL=$EDITOR -export EDITOR VISUAL +# Set command-line editor +EDITOR=ed +export EDITOR diff --git a/sh/profile.d/visual.sh b/sh/profile.d/visual.sh new file mode 100644 index 00000000..95eb1d5d --- /dev/null +++ b/sh/profile.d/visual.sh @@ -0,0 +1,3 @@ +# Set visual editor +VISUAL=vi +export VISUAL -- cgit v1.2.3