home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / live / usr / bin / sensible-editor < prev    next >
Text File  |  1998-08-16  |  213b  |  9 lines

  1. #!/bin/bash
  2. shopt -s execfail
  3. exec ${VISUAL:-${EDITOR:-editor}} "$@"
  4. exec ae "$@"
  5. exec vi "$@"
  6. echo "Couldn't find an editor!" 1>&2
  7. echo "Set the \$EDITOR environment variable to your desired editor." 1>&2
  8. exit 1
  9.