• PureTryOut
    link
    fedilink
    2610 months ago

    export EDITOR=nano.

    But (neo)vim is amazing so there is no need to do that.

    • @SpaceNoodle
      link
      1710 months ago

      I transfer all my files over to a Windows machine and edit them in Notepad

    • @[email protected]
      link
      fedilink
      4
      edit-2
      10 months ago

      Based nano user

      From my .zshrc (typing this on mobile so cope if it’s wrong)

      case "$OSTYPE" in
        linux*)
          export EDITOR=nano
        ;;
        freebsd*)
          export EDITOR=ee
        ;;
      
      • @[email protected]
        link
        fedilink
        210 months ago

        I guess shell languages can’t do this:

        export EDITOR=case "$OSTYPE" in
          linux*)
            nano
          ;;
          freebsd*)
            ee
          ;;