#!/bin/sh if [ -n "$DISPLAY" ]; then ${VISUAL:-$SELECTED_EDITOR} $@ else ${EDITOR:-$SELECTED_EDITOR} $@ fi