aboutsummaryrefslogtreecommitdiff
path: root/mkshrc.d/00-editor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mkshrc.d/00-editor.sh')
-rwxr-xr-xmkshrc.d/00-editor.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkshrc.d/00-editor.sh b/mkshrc.d/00-editor.sh
new file mode 100755
index 0000000..d60a65f
--- /dev/null
+++ b/mkshrc.d/00-editor.sh
@@ -0,0 +1,3 @@
+EDITOR=$(command -v vim)
+VISUAL="$EDITOR"
+export EDITOR VISUAL