1 2 3 4 5 6 7
#!/bin/sh if [ -n "$DISPLAY" ]; then ${VISUAL:-$SELECTED_EDITOR} $@ else ${EDITOR:-$SELECTED_EDITOR} $@ fi