1 2 3 4 5 6 7 8
case "$TERM" in eterm*) SELECTED_EDITOR='emacsclient' EDITOR=$SELECTED_EDITOR VISUAL=$SELECTED_EDITOR export SELECTED_EDITOR EDITOR VISUAL :;; esac