• ryannathans@aussie.zone
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    7 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
      link
      fedilink
      arrow-up
      2
      ·
      7 months ago

      I guess shell languages can’t do this:

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