summaryrefslogtreecommitdiff
path: root/v-editor.sh
blob: b1a32cc1702d8016699accd526297b09dc9a4dd5 (plain)
1
2
3
4
5
#!/bin/sh

(if [ -n "$DISPLAY" ]; then eval ${VISUAL:-$SELECTED_EDITOR} "$@"
 else                       eval ${EDITOR:-$SELECTED_EDITOR} "$@"
fi) ||                      eval ${ALTERNATE_EDITOR:-false}  "$@"