• palordrolap@fedia.io
    link
    fedilink
    arrow-up
    6
    ·
    19 hours ago

    Sometimes, programs that need to start up an editor will honour the $EDITOR environment variable, which should contain the name of, or full path to, a user’s preferred editor.

    It’s not set by default though, and a lot of things will naturally default to vi or even ed. Something to be set in a .profile, .bashrc or similar.

    $VISUAL is another variable that is used for similar purposes.

    The resemblance to certain two letter commands is not entirely a coincidence.

    • pmk@piefed.social
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 hours ago

      I learned enough ed(1) to be able to do quick edits in smaller files, and it is actually quite nice to have that simplicity without all the bells and whistles of modern editors.