• PureTryOut
      link
      fedilink
      262 months ago

      export EDITOR=nano.

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

      • @SpaceNoodle
        cake
        link
        162 months ago

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

      • @[email protected]
        link
        fedilink
        4
        edit-2
        2 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
          22 months ago

          I guess shell languages can’t do this:

          export EDITOR=case "$OSTYPE" in
            linux*)
              nano
            ;;
            freebsd*)
              ee
            ;;
          
    • tiredofsametab
      link
      fedilink
      22 months ago

      You can set your default editor (maybe in .bashrc or .bash_profile? I forget), but I’m far too lazy.