aboutsummaryrefslogtreecommitdiff
path: root/bin/eds
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-18 11:09:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-18 11:09:47 +1200
commit00c3c1f3b1221e5dc2d57b53daef7eb1b0f09858 (patch)
treef9dc59e014ee712aa2fd84b08ce7710493c3e26e /bin/eds
parentFix up some command builtin calls (diff)
downloaddotfiles-00c3c1f3b1221e5dc2d57b53daef7eb1b0f09858.tar.gz
dotfiles-00c3c1f3b1221e5dc2d57b53daef7eb1b0f09858.zip
Arrange EDITOR/VISUAL in a more typical way
Diffstat (limited to 'bin/eds')
-rwxr-xr-xbin/eds4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/eds b/bin/eds
index 1855fb34..2afd0a07 100755
--- a/bin/eds
+++ b/bin/eds
@@ -43,8 +43,8 @@ for file in "${files[@]}" ; do
creations[${#creations[@]}]=$file
done
-# Run the editor; if EDITOR isn't set, use vi(1)
-"${EDITOR:-vi}" "${opts[@]}" -- "${files[@]}"
+# Run the editor; if EDITOR isn't set, use ed(1)
+"${VISUAL:-"${EDITOR:-ed}"}" "${opts[@]}" -- "${files[@]}"
# Make any created scripts executable if they now appear to be files
for creation in "${creations[@]}" ; do