From 43f45210630f6491b52af46bc7e85693a3961709 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 13 May 2011 11:05:26 -0400 Subject: Make it so that editor can be called without a filename or other argument --- bin/v-editor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin/v-editor') 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 -- cgit v1.2.3-2-g168b