diff options
author | Luke Shumaker <luke@build-u904-AMD64.(none)> | 2011-05-13 11:05:26 -0400 |
---|---|---|
committer | Luke Shumaker <luke@build-u904-AMD64.(none)> | 2011-05-13 11:05:26 -0400 |
commit | 43f45210630f6491b52af46bc7e85693a3961709 (patch) | |
tree | 65f0f5482f677d4cc0fa7075e13f45f596c9b5c6 /bin | |
parent | 8f31af55544adbf7530f1581a828856a68c8d1b6 (diff) |
Make it so that editor can be called without a filename or other argument
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/v-editor | 4 |
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 |