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

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