diff options
Diffstat (limited to 'bin')
l--------- | bin/editor | 1 | ||||
-rwxr-xr-x | bin/v-editor | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/editor b/bin/editor new file mode 120000 index 0000000..8ca5677 --- /dev/null +++ b/bin/editor @@ -0,0 +1 @@ +v-editor
\ No newline at end of file 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 |