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} "$@"