summaryrefslogtreecommitdiff
path: root/bin/v-editor
diff options
context:
space:
mode:
Diffstat (limited to 'bin/v-editor')
-rwxr-xr-xbin/v-editor7
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/v-editor b/bin/v-editor
new file mode 100755
index 0000000..dc141bc
--- /dev/null
+++ b/bin/v-editor
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ -n "$DISPLAY" ]; then
+ ${VISUAL:-$SELECTED_EDITOR} $@
+else
+ ${EDITOR:-$SELECTED_EDITOR} $@
+fi