• ryannathans
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    8 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
      ;;
    
    • lil@lemy.lol
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      I guess shell languages can’t do this:

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