summaryrefslogtreecommitdiffstats
path: root/editors/vile/profile.d/editor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'editors/vile/profile.d/editor.sh')
-rw-r--r--editors/vile/profile.d/editor.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/editors/vile/profile.d/editor.sh b/editors/vile/profile.d/editor.sh
new file mode 100644
index 0000000000..b0b844070a
--- /dev/null
+++ b/editors/vile/profile.d/editor.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+# First check if this variable is already set
+# then if not set, check it (maybe), then set it
+
+if [ -z "$EDITOR" ] ; then
+ EDITOR="%VILE_BIN%"
+fi
+
+export EDITOR
+