From 896161c483ceef3ed16e2f19a5c05106bed04512 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 21 Jun 2011 21:44:46 -0400 Subject: I can't believe I didn't have this in git before. --- v-editor.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 v-editor.sh (limited to 'v-editor.sh') diff --git a/v-editor.sh b/v-editor.sh new file mode 100644 index 0000000..ef6f0a1 --- /dev/null +++ b/v-editor.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +(if [ -n "$DISPLAY" ]; then eval ${VISUAL:-$SELECTED_EDITOR} "$@" + else eval ${EDITOR:-$SELECTED_EDITOR} "$@" +fi) || eval ${ALTERNATE_EDITOR:-false} "$@" + + -- cgit v1.2.3