summaryrefslogtreecommitdiff
path: root/bin/v-editor
diff options
context:
space:
mode:
Diffstat (limited to 'bin/v-editor')
-rwxr-xr-xbin/v-editor4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/v-editor b/bin/v-editor
index dc141bc..86d1f50 100755
--- a/bin/v-editor
+++ b/bin/v-editor
@@ -1,7 +1,7 @@
#!/bin/sh
-if [ -n "$DISPLAY" ]; then
+(if [ -n "$DISPLAY" ]; then
${VISUAL:-$SELECTED_EDITOR} $@
else
${EDITOR:-$SELECTED_EDITOR} $@
-fi
+fi) || ${ALTERNATE_EDITOR:-false} $@ \ No newline at end of file